Skip to content

Commit 0713d08

Browse files
Sigma1912hansu
authored andcommitted
Gmoccapy: Add variable to enable/disable calculator to edit numeric values in the tool table
1 parent e152e6b commit 0713d08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def __init__(self, argv):
212212
self.incr_rbt_list = [] # we use this list to add hal pin to the button later
213213
self.jog_increments = [] # This holds the increment values
214214
self.unlock = False # this value will be set using the hal pin unlock settings
215+
self.toolpage_use_calc = True # enable/disable calculator widget to edit numeric values in the tool editor
215216

216217
# needed to display the labels
217218
self.system_list = ("0", "G54", "G55", "G56", "G57", "G58", "G59", "G59.1", "G59.2", "G59.3")
@@ -1970,6 +1971,8 @@ def _init_tooleditor(self):
19701971
temp.connect('editing-started', self.on_tool_col_edit_started, col)
19711972

19721973
def on_tool_col_edit_started(self, widget, filtered_path, new_text, col):
1974+
if not self.toolpage_use_calc:
1975+
return
19731976
captations = ["toggle", "Tool#", "Pocket",
19741977
"X-offset", "Y-offset", "Z-offset",
19751978
"A-offset", "B-offset", "C-offset",

0 commit comments

Comments
 (0)