- Posts: 66
- Thank you received: 0
axis.tcl keyboard shortcut problem
10 years 4 months ago #76315
by bladekel
axis.tcl keyboard shortcut problem was created 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 ?
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.
10 years 4 months ago #76319
by bladekel
Replied by bladekel on topic axis.tcl keyboard shortcut problem
I solved the problem guys.
In axis.py file we need to add these lines;
and for controlling the spindlerate over keyboard ;
"1" for keyboard shortcut, and 30 for the rate....
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))
Please Log in to join the conversation.
Time to create page: 1.480 seconds
