Protection around update in case form was manually closed

This commit is contained in:
MikeTheWatchGuy 2018-08-23 14:10:58 -04:00
parent a57fc79706
commit fcdd58ae83
1 changed files with 5 additions and 1 deletions

View File

@ -716,7 +716,10 @@ class Button(Element):
return
def Update(self, new_text):
self.TKButton.configure(text=new_text)
try:
self.TKButton.configure(text=new_text)
except:
return
def __del__(self):
try:
@ -1060,6 +1063,7 @@ class FlexForm:
except:
self.TKrootDestroyed = True
_my_windows.Decrement()
# return None, None
return BuildResults(self, False, self)
def GetScreenDimensions(self):