axis.tcl keyboard shortcut problem
20 Jun 2016 13:02 - 20 Jun 2016 14:50 #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 ?
Last edit: 20 Jun 2016 14:50 by bladekel.
Please Log in or Create an account to join the conversation.
20 Jun 2016 14:52 - 20 Jun 2016 14:52 #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;
def set_spindlerate(n):
widgets.spinoverride.set(n)
and for controlling the spindlerate over keyboard ;
root_window.bind("1", lambda event: set_spindlerate(30))
Last edit: 20 Jun 2016 14:52 by bladekel.
Please Log in or Create an account to join the conversation.
20 Jun 2016 19:48 #76327
by nkp
Replied by nkp on topic axis.tcl keyboard shortcut problem
Please Log in or Create an account to join the conversation.
Time to create page: 0.620 seconds