Addec chaining capability to Finalize method... more compacting the user's code!

This commit is contained in:
MikeTheWatchGuy 2018-09-23 12:10:25 -04:00
parent ae661d27f2
commit 50261625a4
1 changed files with 15 additions and 1 deletions

View File

@ -2001,9 +2001,23 @@ class FlexForm:
# return None, None
return BuildResults(self, False, self)
def Finalize(self):
if self.TKrootDestroyed:
return self
if not self.Shown:
self.Show(non_blocking=True)
try:
rc = self.TKroot.update()
except:
self.TKrootDestroyed = True
_my_windows.Decrement()
# return None, None
return self
# Another name for ReadNonBlocking.
PrepareForUpdate = ReadNonBlocking
Finalize = ReadNonBlocking
# Finalize = ReadNonBlocking
PreRead = ReadNonBlocking