pyVCP : How to install a PATCH for a widget .
23 Apr 2013 15:58 #33043
by bigalex
pyVCP : How to install a PATCH for a widget . was created 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
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
Please Log in or Create an account to join the conversation.
23 Apr 2013 16:47 - 23 Apr 2013 16:48 #33045
by ArcEye
Replied by ArcEye on topic pyVCP : How to install a PATCH for a widget .
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!
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.
23 Apr 2013 17:06 #33047
by bigalex
Replied by bigalex on topic pyVCP : How to install a PATCH for a widget .
Thank you ArcEye.
I will try to follow your hints and I will feedback in any case.
bigalex
I will try to follow your hints and I will feedback in any case.
bigalex
Please Log in or Create an account to join the conversation.
23 Apr 2013 20:37 #33061
by bigalex
Replied by bigalex on topic pyVCP : How to install a PATCH for a widget .
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
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
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds