Extended pyvcp_widgets

More
24 Feb 2014 17:12 #44111 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets
Hi Chris

Leave it with me for a bit

I don't get that error, but on looking through realised some of the code was old and had been changed ages ago
Something has got badly screwed in the sources, I'll go back to scratch and post a new copy complete with a sim config to run it on to demo the widgets working

regards

Please Log in or Create an account to join the conversation.

More
24 Feb 2014 17:30 #44113 by cmorley
Replied by cmorley on topic Extended pyvcp_widgets
ok standing by :)

Please Log in or Create an account to join the conversation.

More
24 Feb 2014 18:20 - 24 Feb 2014 23:45 #44118 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets
Hi Chris

(EDITED 1535)

Now hopefully sorted, I had somehow edited a previous version of the file when I added the latest changes and broke stuff along the way.

If you download the zip from the link on the first post of this thread, it contains the new py file and a config which will give you a panel like this





This demonstrates that the initial values can be preset and shows the sliders linked to the param_pin s of the dials and spinboxes to alter their values directly
( you would never actually do that, just shows the linkage)

The multilabel widget is working when different radio buttons are selected.
( The problem you had was partly that I had incorrectly shown <disable_pin>"False"</disable_pin> in the html page or the code header, which would change a bool to a text string if you used it like that )

The bar widget changes colour as the linked slider beneath it is moved across.
There is also a pushbutton next to the checkboxes, which is connected to the changepin of checkbox 0 to demonstrate remote toggling

I now need to have a purge of my system for any orphaned versions to stop this occuring again :angry:

regards

PS
Slightly amended txt of html page attached also

File Attachment:

File Name: pyvcp_2014-02-24.txt
File Size:30 KB
Attachments:
Last edit: 24 Feb 2014 23:45 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Feb 2014 05:57 #44155 by cmorley
Replied by cmorley on topic Extended pyvcp_widgets
Hi ArcEye

got the widgets working.

Can you zip the txt file so i don't have to edit out the forum weirdness.

I will add the sample config also to linuxcnc. (I cleaned it a bit, I'm sure it was not intended to be added)

Does anyone have a sample panel that uses shows all (most?) of the widgets?
something like the one on this page (the pasbin had expired)
wiki.linuxcnc.org/cgi-bin/wiki.pl?PyVCP

I would like to add that too.
Chris M

Please Log in or Create an account to join the conversation.

More
25 Feb 2014 17:15 - 25 Feb 2014 17:55 #44170 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets

Hi ArcEye

got the widgets working.

Can you zip the txt file so i don't have to edit out the forum weirdness.


No problem

File Attachment:

File Name: pyvcp_txt.zip
File Size:9 KB


I will add the sample config also to linuxcnc. (I cleaned it a bit, I'm sure it was not intended to be added)


That config had the remains of at least half a dozen previous component developments, so it needed cleaning or would confuse the hell out of people :laugh:

Does anyone have a sample panel that uses shows all (most?) of the widgets?
something like the one on this page (the pasbin had expired)
wiki.linuxcnc.org/cgi-bin/wiki.pl?PyVCP

I would like to add that too.
Chris M


I don't know if anyone does.

The biggest use thus far for my widgets has been from guys using THC or Laser cutting, who have loads of settings they want to preserve between sessions,
so they either use my param_saver component or some other means and populate all the spinboxes that control the torch or laser at start up.
They can also save settings as they go and then reload that file when the same job comes up again.

So they tend to use multiple copies of the same few widgets

I'll see what I can cobble together, great pity the pastebin entry has expired on that page, could have used it as a template.

Thanks for your time on this

regards
Attachments:
Last edit: 25 Feb 2014 17:55 by ArcEye.

Please Log in or Create an account to join the conversation.

More
25 Feb 2014 22:24 #44179 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets
Hi Chris

I came up with this panel which uses most of the widgets (meter, table, tabbed widget and jogwheel not covered, but they are in the docs)
It also demonstrates spacing, frame and their styles etc.




The zip of the config including xml and hal files is attached

regards
Attachments:

Please Log in or Create an account to join the conversation.

More
26 Feb 2014 16:27 #44196 by cmorley
Replied by cmorley on topic Extended pyvcp_widgets
Ok pushed to master.

let me know of any problems

Chris M
The following user(s) said Thank You: ArcEye

Please Log in or Create an account to join the conversation.

More
26 Feb 2014 17:35 - 26 Feb 2014 23:24 #44197 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets
Hi Chris

Built and tested and the demo etc runs fine.

Found one problem with backward compatabilty with the bar, so fixed that.

Raw patch (couldn't get git-format-patch to work in the time available) and new .py file in zip

Thank for your trouble, hopefully that will be it, but I will redo tests later

regards

PS email with git patch sent to you
Attachments:
Last edit: 26 Feb 2014 23:24 by ArcEye.

Please Log in or Create an account to join the conversation.

More
28 Feb 2014 12:47 #44250 by cmorley
Replied by cmorley on topic Extended pyvcp_widgets
I pushed your patch ( though I pulled out the nasty tabs in it :) )

Chris M

Please Log in or Create an account to join the conversation.

More
28 Feb 2014 15:55 - 28 Feb 2014 18:22 #44251 by ArcEye
Replied by ArcEye on topic Extended pyvcp_widgets
Thanks Chris

I can't claim credit for the tabs, one was a cut and paste from GitGui and the other generated by git format-patch, don't know what happened.

I have tested all the configs I could find with pyvcp panels and they worked with the patch, I will pull again later and re-test to be sure

regards
Last edit: 28 Feb 2014 18:22 by ArcEye.

Please Log in or Create an account to join the conversation.

Time to create page: 0.531 seconds
Powered by Kunena Forum