New GetScreenDimension method for FlexForms

This commit is contained in:
MikeTheWatchGuy 2018-08-22 17:47:32 -04:00
parent b1829438a9
commit 8f4e0e182a
1 changed files with 8 additions and 0 deletions

View File

@ -1048,6 +1048,14 @@ class FlexForm:
_my_windows.Decrement()
return BuildResults(self, False, self)
def GetScreenDimensions(self):
if self.TKrootDestroyed:
return None, None
screen_width = self.TKroot.winfo_screenwidth() # get window info to move to middle of screen
screen_height = self.TKroot.winfo_screenheight()
return screen_width, screen_height
def KeyboardCallback(self, event ):
self.LastButtonClicked = None
self.FormRemainedOpen = True