#hazzy | Logs for 2018-09-23
Back
[00:19:15] <Lcvette> Turboss, did you figure out the sorting on the tool table?
[00:19:59] <TurBoss> no
[08:26:20] <hazzy-m> morning
[08:29:28] <jthornton> morning
[08:30:44] <hazzy-m> jthornton: I have not had a chance to look at the doc examples, but will this afternoon/evening
[08:31:48] <jthornton> no hurry
[08:32:05] <jthornton> how does it work with linuxcnc?
[08:32:59] <jthornton> are the widgets added to the Qt Designer somehow?
[08:33:30] <hazzy-m> Yes, they show up in the left side widget box with all the other widgets
[08:34:28] * hazzy-m uploaded an image: Screenshot_2018-09-23_08-34-11.png (180KB) < https://matrix.org >
[08:35:06] <hazzy-m> and the properties are set on the right, note the HAL pin name for setting the state the the LED in the LED Button
[08:36:04] <jthornton> I was trying to follow the readme.md but ran into a bad link and seemed to be missing something
[08:36:51] <hazzy-m> what OS are you using, mint?
[08:37:38] <jthornton> yea this is mint 18 uspace running master
[08:38:19] <jthornton> ttps://gist.github.com
[08:38:23] <jthornton> that's a bad link
[08:38:52] <jthornton> ## QtDesigner Plug-ins
[08:39:03] <jthornton> that's where I got stopped in my tracks
[08:40:58] <hazzy-m> It works here, and CMorely commented on it so at least he can get to it, hmmm
[08:41:42] <jthornton> the link?
[08:42:22] <jthornton> must have cut off one of the zillion number lol, works now
[08:42:27] <hazzy-m> You probably don't have to compile form source, since CMorely also uses mint 18, you can use one of his libpyqt.so objects
[08:43:43] <hazzy-m> Should be here: https://github.com
[08:44:33] <jthornton> should I just be able to build it from the link?
[08:44:46] <hazzy-m> yes!
[08:44:57] <hazzy-m> its not hard
[08:45:09] <jthornton> I'll try that first, but I wonder how a linux newbee will fare???
[08:46:12] <jthornton> also in the readme.mb ### Run the development sim the file is not found
[08:47:33] <jthornton> one of my pet peeves is having the $ on a line of code so you can't triple click to select it and new users try and run $ something and get an error
[08:49:22] <jthornton> are you using pyqt5 with python 2.7?
[08:54:49] <jthornton> is path to plugins QtPyVCP?
[09:09:23] <jthornton> qt5 designer runs but no vcp widgets show up
[09:12:05] <hazzy> yes, pyqt5 and py2.7
[09:12:38] <hazzy> to launch the designer you need to run the QtPyVCP/lanch_designer.sh script
[09:14:06] <jthornton> I'm getting a read error about sim/xyz.ui not found
[09:14:29] <jthornton> got all the linuxcnc widgets
[09:14:37] <hazzy> just open another UI file
[09:14:56] <hazzy> I should fix that ...
[09:15:08] <hazzy> Hurray! You have the widgets
[09:15:40] <jthornton> ah yea I see you have the ini file hard coded in the script
[09:17:15] <hazzy-m> Right, that is the concern. I am hoping we can make of a library of precompiled .so files that newbees can just copy-paste instead of compiling
[09:17:42] <hazzy-m> LOL, my internet connection came back
[09:18:16] <jthornton> I ended up with 3.75 pounds of beef jerky from a 6 pound eye of round :)
[09:18:31] <hazzy-m> that script is very temporary, working on a better way to launch the designer
[09:18:42] <hazzy-m> Nice!!
[09:18:58] <jthornton> what are you thinking of to launch the designer?
[09:20:55] <hazzy-m> I have made a graphical VCP chooser (much like the LCNC config chooser), so you can select a vcp and edit it or run it or create a new one
[09:21:13] <jthornton> in python?
[09:21:22] <hazzy-m> yes
[09:21:25] <jthornton> cool
[09:21:41] <hazzy-m> it is in the VCPLauncher branch, but not quite ready to merge yet
[09:21:41] <jthornton> where is that?
[09:24:26] <jthornton> why do you check to see if linuxcnc is running?
[09:26:47] <hazzy-m> The idea it to be able run multiple instances of QtPyVCP, and connect them all to the same LCNC instance. It is mostly useful for debuging, but you could also use it for multiple screens etc.
[09:27:26] <jthornton> ah connect them so you can test them?
[09:27:36] <jthornton> complicated for sure :)
[09:27:37] <hazzy-m> Yes
[09:28:16] <hazzy-m> for example I do most debuging with axis running as the "master" UI, and the QTPyVCP UI running as slaves
[09:28:36] <jthornton> I see
[09:28:41] <hazzy-m> I can close and relaunch them with out having to wait for LCNC to shutdown and reload, and home etc.
[09:28:57] <jthornton> that speeds up development a lot
[09:29:04] <hazzy-m> it does
[09:30:04] <jthornton> I wonder if a simple launcher for users would be better?
[09:30:55] <jthornton> been working on my chicken door program making it much better than the last one...
[09:31:03] * jthornton goes to check on breakfast
[09:31:16] <hazzy-m> The end goal is to have an "Edit VCP" menu item, and you will be able to edit the VCP on the fly withough having to close LCNC
[09:32:08] <jthornton> oh that would be nice
[09:33:16] <jthornton> how do you clone from gitlab?
[09:33:41] <jthornton> all I see is a download button
[09:34:20] <hazzy-m> just to the left of the download button, the SSH link
[09:35:15] * hazzy-m does not like the gitlab interface, low contrast and very hard to find things
[09:35:39] <jthornton> you only use it because?
[09:36:05] <jthornton> https://imagebin.ca
[09:36:20] <hazzy-m> because TurBoss set up a Hazzy org on gitlab :D
[09:36:23] <jthornton> I don't see the SSH link, do I have to be logged in
[09:36:35] <jthornton> lol I saw that
[09:37:01] <jthornton> and there is a hazzy on github
[09:37:01] <hazzy-m> Ah, you can't clone a branch
[09:37:09] <hazzy-m> all you have to do it check it out
[09:37:23] <hazzy-m> git checkout VCPLauncher
[09:37:27] <jthornton> yea github you can clone
[09:37:37] <hazzy-m> in your QtPyVCP dir
[09:37:42] <hazzy-m> I don't think so
[09:38:03] <jthornton> I ran git gui and it wants to make a new git
[09:38:07] <jthornton> breakfast time hre
[09:38:08] <hazzy-m> well, the button may be there, but I think it clones the master branch
[09:38:19] <hazzy-m> enjoy
[10:01:57] <jthornton> no ssh button on master either, I'm guessing you need to be signed in
[10:19:26] <hazzy-m> Should be near the top here: https://gitlab.com
[10:19:49] <hazzy-m> you might have to change the drop down from HTTP to SSH
[10:20:14] <hazzy-m> if all else fails: https://github.com
[10:20:15] <hazzy-m> :D
[10:20:25] <hazzy-m> that is a mirror
[10:22:11] <jthornton> ah I see it now it only shows up when your in https://gitlab.com
[10:26:07] <hazzy-m> I don't understand the rational for a lot of things on gitlab
[10:26:33] <hazzy-m> ok, i'm off for a bit to put that hydraulic power unit back in
[10:26:34] <hazzy-m> bbl
[12:48:35] -!- Roguish_desk has quit [Ping timeout: 250 seconds]
[13:00:07] -!- Roguish_desk has joined #hazzy
[19:33:49] <TurBoss> Hello
[19:34:41] <TurBoss> jthornton: did you manage to clone qtpyvcp?
[20:25:29] <jthornton> yes, I finally found out what page had the ssh and html link
[20:26:59] <TurBoss> oh great
[21:49:23] -!- Roguish has quit [Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]]
[21:58:46] * TurBoss uploaded an image: image.png (15KB) < https://matrix.org >
[22:16:21] * TurBoss uploaded an image: image.png (13KB) < https://matrix.org >
[22:19:13] <hazzy-m> Nice!
[22:19:39] <TurBoss> I made it a dialog
[22:19:48] <TurBoss> how to launch it? a custom button?=
[22:19:51] <TurBoss> or how?
[22:20:34] <hazzy-m> It would be nice to have a dialog button ...
[22:20:46] <TurBoss> oh oh
[22:20:50] <TurBoss> oh
[22:20:57] <TurBoss> just ordered the plugngo kit
[22:21:03] <hazzy-m> you specify the path the the dialog UI file and that's it!
[22:21:18] <TurBoss> isn't an ui file
[22:21:23] <hazzy-m> Great!
[22:21:50] <hazzy-m> Oh, ok, than I guess just a regular button to launch it
[22:22:10] <TurBoss> a regular one is fine but how?
[22:22:10] <hazzy-m> Did you use QtPyVCP widgets or just standard ones?
[22:22:28] <TurBoss> hmmm
[22:22:38] <hazzy-m> did you inherent from QDialog?
[22:22:42] <TurBoss> yes
[22:22:55] <TurBoss> is there another way
[22:22:58] <TurBoss> ?
[22:23:27] <hazzy-m> no, QDialog is good
[22:23:53] <TurBoss> ok ok
[22:23:55] <hazzy-m> Look at how the file dialog is launched
[22:24:11] <TurBoss> ok
[22:24:56] <hazzy-m> it's in form_widgets/main_window.py
[22:25:13] <hazzy-m> I think it is just a simple FileDialog.show()
[22:26:06] <TurBoss> yes but how do I pipe that to a regular button?
[22:26:10] <TurBoss> :\
[22:26:42] <hazzy-m> just add a new method and connect it to the clicked signal of the button
[22:29:27] <TurBoss> sorry but I still need a custom button for that?
[22:29:48] <TurBoss> ah fount
[22:29:51] <TurBoss> found
[22:29:53] <TurBoss> i think
[22:35:47] <TurBoss> make sense to have a slot on main_window that opens the given str dialog?
[22:56:02] <Not> [02QtPyVCP] 07TurBoss created branch 03offsets_dialog
[22:56:28] <TurBoss> I made it a Popup with flags on super
[22:56:38] <TurBoss> ```
[22:56:39] <TurBoss> super(OffsetsDialog, self).__init__(parent=parent, flags=Qt.Popup)
[22:56:40] <TurBoss> ```
[22:57:44] * TurBoss uploaded a video: Peek 24-09-2018 04-57.webm (141KB) < https://matrix.org >
[22:58:35] <TurBoss> forgot to show that if you click outside of the widget it closes itself