New GetScreenDimension method for FlexForms
This commit is contained in:
parent
b1829438a9
commit
8f4e0e182a
|
@ -1048,6 +1048,14 @@ class FlexForm:
|
||||||
_my_windows.Decrement()
|
_my_windows.Decrement()
|
||||||
return BuildResults(self, False, self)
|
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 ):
|
def KeyboardCallback(self, event ):
|
||||||
self.LastButtonClicked = None
|
self.LastButtonClicked = None
|
||||||
self.FormRemainedOpen = True
|
self.FormRemainedOpen = True
|
||||||
|
|
Loading…
Reference in New Issue