fime/util.py

7 lines
231 B
Python
Raw Normal View History

2021-11-17 03:27:59 +00:00
def get_screen_height(qobject):
if hasattr(qobject, "screen"):
return qobject.screen().size().height()
else:
print("unable to detect screen height falling back to default value of 1080")
return 1080