axis.tcl keyboard shortcut problem

More
10 years 4 months ago #76315 by bladekel
Hello my friends.

I'm trying to add new keyboard shortcut to axis for controlling the spindle override.

In axis.py file with the codes below,

root_window.bind("2", lambda event: set_rapidrate(20)) --- controls the rapidrate
root_window.bind("3", lambda event: set_feedrate(20)) ---- controls the feedrate
root_window.bind("4", lambda event: set_spindlerate(20)) ---- not controls the spindlerate

Do you have any idea why I cant control the spindle rate by pressing the keyboard buttons ?

Please Log in to join the conversation.

More
10 years 4 months ago #76319 by bladekel
I solved the problem guys.

In axis.py file we need to add these lines;
Code:
def set_spindlerate(n): widgets.spinoverride.set(n)

and for controlling the spindlerate over keyboard ;
Code:
root_window.bind("1", lambda event: set_spindlerate(30))
"1" for keyboard shortcut, and 30 for the rate....

Please Log in to join the conversation.

More
10 years 4 months ago #76327 by nkp
probably correct to write this in ~.axisrc

Please Log in to join the conversation.

Time to create page: 1.480 seconds
Powered by Kunena Forum