Content-Length: 258203 | pFad | http://github.com/qualisys/qtm-scripting/commit/35b3e25e610bf96cbd25e47c8a8a92c088f73da0

65 Use 'add_command' from 'menu_tools' to check for duplicate before try… · qualisys/qtm-scripting@35b3e25 · GitHub
Skip to content

Commit 35b3e25

Browse files
Use 'add_command' from 'menu_tools' to check for duplicate before trying to add the command.
1 parent 561ba9a commit 35b3e25

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

demo_scripts/Classes/custom_menu_bar_class.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ def __init__(self):
3535
self._menu_id = 0
3636
self._menu_index = None
3737
# Dummy command, used to reset hotkeys between menus
38-
qtm.gui.add_command("dummy_func")
39-
qtm.gui.set_command_execute_function("dummy_func", None)
38+
add_command("dummy_func", None)
4039

4140
def _update_menu_index(self):
4241
if (self._menu_index is None):

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/qualisys/qtm-scripting/commit/35b3e25e610bf96cbd25e47c8a8a92c088f73da0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy