Extended pyvcp_widgets
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.
![:) :)](/media/kunena/emoticons/smile.png)
Please Log in or Create an account to join the conversation.
(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: :angry:](/media/kunena/emoticons/angry.png)
regards
PS
Slightly amended txt of html page attached also
Please Log in or Create an account to join the conversation.
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.
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
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: :laugh:](/media/kunena/emoticons/laughing.png)
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
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
let me know of any problems
Chris M
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
![:) :)](/media/kunena/emoticons/smile.png)
Chris M
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.