aboutsummaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
authortassaron2022-04-13 16:04:32 -0400
committertassaron2022-04-13 16:04:32 -0400
commit765a35119f258f352718a556fbea4af708236900 (patch)
treecacd95152875f47f6fcb2d1114e5ea8499b05bcf /src/main.py
parenteadf0e59fda3b442bf660b562c5fc4a70ba18c33 (diff)
cast floats to ints when calling resize(), setX(), and setY() (argument types changed in newer version)
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.py b/src/main.py
index f767de1..126e4a8 100644
--- a/src/main.py
+++ b/src/main.py
@@ -44,9 +44,10 @@ def main():
topMargin = 0 if (dpi == 96) else int(10 * (dpi / 96))
window.resize(
- window.width() *
- (dpi / 96), window.height() *
- (dpi / 96)
+ int(window.width() *
+ (dpi / 96)),
+ int(window.height() *
+ (dpi / 96))
)
# window.verticalLayout_2.setContentsMargins(0, topMargin, 0, 0)