Key l auncher

This commit is contained in:
MikeTheWatchGuy 2019-05-30 12:30:21 -04:00
parent b1baad7beb
commit dbbebff429
1 changed files with 5 additions and 2 deletions

View File

@ -3660,9 +3660,11 @@ class Window:
self.AllKeysDict = {} self.AllKeysDict = {}
self.TransparentColor = transparent_color self.TransparentColor = transparent_color
self.UniqueKeyCounter = 0 self.UniqueKeyCounter = 0
if layout is not None: if layout is not None:
self.Layout(layout) self.Layout(layout)
@classmethod @classmethod
def GetAContainerNumber(cls): def GetAContainerNumber(cls):
cls.container_element_counter += 1 cls.container_element_counter += 1
@ -6243,6 +6245,7 @@ def StartupTK(my_flex_form:Window):
else: else:
root = tk.Toplevel() root = tk.Toplevel()
root.bind('<Cancel>', show_debugger_window)
try: try:
root.attributes('-alpha', 0) # hide window while building it. makes for smoother 'paint' root.attributes('-alpha', 0) # hide window while building it. makes for smoother 'paint'
except: except:
@ -8207,7 +8210,7 @@ class Debugger():
# 888 "Y88888 888 888 "Y8888P "Y888 888 "Y88P" 888 888 88888P' # 888 "Y88888 888 888 "Y8888P "Y888 888 "Y88P" 888 888 88888P'
def show_debugger_window(): def show_debugger_window(*args):
frame, *others = inspect.stack()[1] frame, *others = inspect.stack()[1]
try: try:
Debugger.locals = frame.f_back.f_locals Debugger.locals = frame.f_back.f_locals
@ -8220,7 +8223,7 @@ def show_debugger_window():
return True return True
def show_debugger_popout_window(): def show_debugger_popout_window(*args):
# frame = inspect.currentframe() # frame = inspect.currentframe()
# prev_frame = inspect.currentframe().f_back # prev_frame = inspect.currentframe().f_back