GUI Modification Code Snippets / Toolbox

More
2 years 11 months ago #284304 by Andyf97
Three really useful tweaks for Pathpilot, anyone know how to do it?

You see in the attachment, faders highlighted in Yellow.

Some way to set them to 100% on the speeds and 1% jog whenever I am running a tapping job with some Gcode or system command.

Also another, if using the electronic edge finder in pathpilot, the feedrate is taken according to the last operation that took place.

Some way to set the feedrate whenever a "find edge button" is pressed. So that it is always the same regardless of other factors/settings..

Also, to stop the screen jumping to the error screen whenever an error happens.

 

Attachment not found










 

Please Log in to join the conversation.

More
2 years 11 months ago #285868 by Dorro1971
Hi all,

here's my contribution to the hotkey if it helps anyone out there.....

Code:
#Key a sets a feedrate override of 10%             if kv == gtk.keysyms.a:                 self.sliders['feedrate'].set_slider_value(10)                 return True #Key a sets a spindlee override of 10%             if kv == gtk.keysyms.a:                 self.sliders['spindle'].set_slider_value(10)                 return True #Key a sets a maxvel of 10%             if kv == gtk.keysyms.a:                 self.sliders['maxvel'].set_slider_value(10)                 return True #Key a sets a jog speed of 10%             if kv == gtk.keysyms.a:                 self.sliders['jog_speed'].adjustment.set_value(10)                 return True I hope someone finds this useful.. cheers , Ian  

Please Log in to join the conversation.

More
2 years 11 months ago #285885 by Dorro1971
..... And a few more useful ones, I have added these to my pendant, the last few make centering a part much easier.....


Code:
               # F2 key for zero x             if kv == gtk.keysyms.F2:                 self.enqueue_button_press_release(self.button_list['zero_x'])                 return True                       # F3 key for zero y             if kv == gtk.keysyms.F3:                 self.enqueue_button_press_release(self.button_list['zero_y'])                 return True                # F4 key for zero z             if kv == gtk.keysyms.F4:                 self.enqueue_button_press_release(self.button_list['zero_z'])                 return True                # F5 key for zero a             if kv == gtk.keysyms.F5:                 self.enqueue_button_press_release(self.button_list['zero_a'])                 return True                # F6 key for x divide by 2             if kv == gtk.keysyms.F6:                 self.issue_mdi('G10 L20 P0 X[#<_x>/2.0]')                 return True                # F7 key for y divide by 2             if kv == gtk.keysyms.F7:                 self.issue_mdi('G10 L20 P0 Y[#<_y>/2.0]')                 return True of course correct indents are essential otherwise python throws a fit,..just format all,lines the same as exisying code...

 

Please Log in to join the conversation.

More
2 years 11 months ago #285893 by Dorro1971
Increment and decrement feedrate, spindle override, maxvel via keyboard....

forum.linuxcnc.org/pathpilot/49049-overr...tons?start=10#285891

Please Log in to join the conversation.

Time to create page: 0.040 seconds
Powered by Kunena Forum