GetScreenDimensions for Windows

This commit is contained in:
MikeTheWatchGuy 2018-11-27 14:26:36 -05:00
parent 2b50532d38
commit f8a3d6dad2
1 changed files with 7 additions and 2 deletions

View File

@ -3228,8 +3228,13 @@ class Window:
print('*** Error loading form to disk ***')
def GetScreenDimensions(self):
# TODO
screen_width = screen_height = 0
try:
screen = _my_windows.QTApplication.primaryScreen()
except:
return None, None
size = screen.size()
screen_width = size.width()
screen_height = size.height()
return screen_width, screen_height
def Move(self, x, y):