pyVCP : How to install a PATCH for a widget .

More
23 Apr 2013 15:58 #33043 by bigalex
Hi people.
Reading mails from mailing list I got a patch file for the pyVCP widget component METER.
Into the mail there is no indication on how to install the patch file.
So in somebody know how to do it I will appreciate.
This patch provide a second needle to the meter indicator with an additional HAL pin.
I think this is a very useful feature for this widget .
The author is the mythical Anders Wallin on the request of Gene Heskett.
I attach the patch file just in case somebody else need it.

Thanks for any advice.

bigalex :blink:

File Attachment:

File Name: 0002-dual-...n2.patch
File Size:7 KB
Attachments:

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

More
23 Apr 2013 16:47 - 23 Apr 2013 16:48 #33045 by ArcEye
Hi

see man patch

Just copy pyvcp_widgets.py to some directory to work on, name the patch file something like meter.patch and put in the same directory

Then run patch pyvcp_widgets.py < meter.patch

Once you are happy it suceeded you can replace the original with the patched file, having saved the original as something else as a safety net.

Beware that this file is all over the place /usr/share/pyshared /usr/lib/python2.6/dist-packages /usr/lib/pymodules/python2.6 /usr/python2.5/site-packages (if you have it)
and each is accompanied by a .pyc compiled library which must be deleted or the old code in it will be used

I created a symlink to all these locations from one single file in /usr/share/pyshared to eliminate the confusion and multiple versions
(see this thread for more details www.linuxcnc.org/index.php/english/forum...-of-a-spinbox-in-hal)

regards

PS I am sure Anders does actually exist!
Last edit: 23 Apr 2013 16:48 by ArcEye.

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

More
23 Apr 2013 17:06 #33047 by bigalex
Thank you ArcEye.
I will try to follow your hints and I will feedback in any case.

bigalex :blink:

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

More
23 Apr 2013 20:37 #33061 by bigalex
The patch procedure is done as per ArcEye indications.
It's working as it should be .
This feature is mainly for display the commanded speed/position and the actual speed/position for a spindle or an axis.

bigalex :blink:

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

Time to create page: 0.060 seconds
Powered by Kunena Forum