GetScreenDimensions for Windows
This commit is contained in:
parent
2b50532d38
commit
f8a3d6dad2
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue