Debugger flags

This commit is contained in:
MikeTheWatchGuy 2019-05-30 16:45:50 -04:00
parent 24fb9c5840
commit 6656e44326
1 changed files with 4 additions and 2 deletions

View File

@ -1662,6 +1662,7 @@ class Button(Element):
except:
pass
elif self.BType == BUTTON_TYPE_SHOW_DEBUGGER:
if self.ParentForm.DebuggerEnabled:
show_debugger_window()
if should_submit_window:
@ -4257,11 +4258,12 @@ class Window:
self.TKroot.bind('<Cancel>', show_debugger_window)
# root.bind('<Pause>', show_debugger_popout_window)
self.TKroot.bind('<Pause>', Debugger._build_floating_window)
self.DebuggerEnabled = True
def DisableDebugger(self):
self.TKroot.unbind("<Cancel>")
self.TKroot.unbind("<Pause>")
self.DebuggerEnabled = False
def __enter__(self):