Removed prints

This commit is contained in:
MikeTheWatchGuy 2018-12-01 18:30:51 -05:00
parent 579377e748
commit 6225a34f0a
1 changed files with 7 additions and 7 deletions

View File

@ -3117,7 +3117,7 @@ class Window:
except: except:
self.TKrootDestroyed = True self.TKrootDestroyed = True
_my_windows.Decrement() _my_windows.Decrement()
print('ROOT Destroyed') # print('ROOT Destroyed')
results = BuildResults(self, False, self) results = BuildResults(self, False, self)
if results[0] != None and results[0] != timeout_key: if results[0] != None and results[0] != timeout_key:
return results return results
@ -3128,7 +3128,7 @@ class Window:
# print("** REALTIME PROBLEM FOUND **", results) # print("** REALTIME PROBLEM FOUND **", results)
if self.RootNeedsDestroying: if self.RootNeedsDestroying:
print('*** DESTROYING really late***') # print('*** DESTROYING really late***')
self.TKroot.destroy() self.TKroot.destroy()
# _my_windows.Decrement() # _my_windows.Decrement()
self.LastButtonClicked = None self.LastButtonClicked = None
@ -3183,7 +3183,8 @@ class Window:
self.TKroot.quit() self.TKroot.quit()
self.TKroot.destroy() self.TKroot.destroy()
except: except:
print('DESTROY FAILED') pass
# print('DESTROY FAILED')
return None, None return None, None
if not self.Shown: if not self.Shown:
self.Show(non_blocking=True) self.Show(non_blocking=True)
@ -3192,10 +3193,10 @@ class Window:
except: except:
self.TKrootDestroyed = True self.TKrootDestroyed = True
_my_windows.Decrement() _my_windows.Decrement()
print("read failed") # print("read failed")
# return None, None # return None, None
if self.RootNeedsDestroying: if self.RootNeedsDestroying:
print('*** DESTROYING LATE ***', self.ReturnValues) # print('*** DESTROYING LATE ***', self.ReturnValues)
self.TKroot.destroy() self.TKroot.destroy()
_my_windows.Decrement() _my_windows.Decrement()
self.Values = None self.Values = None
@ -3856,8 +3857,7 @@ def BuildResultsForSubform(form, initialize_only, top_level_form):
value = element.ClickPosition value = element.ClickPosition
elif element.Type == ELEM_TYPE_MENUBAR: elif element.Type == ELEM_TYPE_MENUBAR:
if element.MenuItemChosen is not None: if element.MenuItemChosen is not None:
top_level_form.LastButtonClicked = element.MenuItemChosen button_pressed_text = top_level_form.LastButtonClicked = element.MenuItemChosen
button_pressed_text = top_level_form.LastButtonClicked
value = element.MenuItemChosen value = element.MenuItemChosen
element.MenuItemChosen = None element.MenuItemChosen = None
else: else: