GUI Modification Code Snippets / Toolbox

More
02 Nov 2023 07:55 - 02 Nov 2023 07:56 #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.

 








 
Attachments:
Last edit: 02 Nov 2023 07:56 by Andyf97.

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

More
18 Nov 2023 23:10 - 18 Nov 2023 23:41 #285868 by Dorro1971
Hi all,

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

#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
 
Last edit: 18 Nov 2023 23:41 by Dorro1971. Reason: Can't see square brackets!
The following user(s) said Thank You: gerritv, tommylight

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

More
19 Nov 2023 09:36 - 19 Nov 2023 09:38 #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.....


               # 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...

 
Last edit: 19 Nov 2023 09:38 by Dorro1971.

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

More
19 Nov 2023 13:16 #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 or Create an account to join the conversation.

Moderators: cncbasher
Time to create page: 0.076 seconds
Powered by Kunena Forum