Protection around update in case form was manually closed
This commit is contained in:
parent
a57fc79706
commit
fcdd58ae83
|
@ -716,7 +716,10 @@ class Button(Element):
|
||||||
return
|
return
|
||||||
|
|
||||||
def Update(self, new_text):
|
def Update(self, new_text):
|
||||||
self.TKButton.configure(text=new_text)
|
try:
|
||||||
|
self.TKButton.configure(text=new_text)
|
||||||
|
except:
|
||||||
|
return
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
try:
|
try:
|
||||||
|
@ -1060,6 +1063,7 @@ class FlexForm:
|
||||||
except:
|
except:
|
||||||
self.TKrootDestroyed = True
|
self.TKrootDestroyed = True
|
||||||
_my_windows.Decrement()
|
_my_windows.Decrement()
|
||||||
|
# return None, None
|
||||||
return BuildResults(self, False, self)
|
return BuildResults(self, False, self)
|
||||||
|
|
||||||
def GetScreenDimensions(self):
|
def GetScreenDimensions(self):
|
||||||
|
|
Loading…
Reference in New Issue