diff options
| author | tassaron | 2022-04-13 16:04:32 -0400 |
|---|---|---|
| committer | tassaron | 2022-04-13 16:04:32 -0400 |
| commit | 765a35119f258f352718a556fbea4af708236900 (patch) | |
| tree | cacd95152875f47f6fcb2d1114e5ea8499b05bcf /src/main.py | |
| parent | eadf0e59fda3b442bf660b562c5fc4a70ba18c33 (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.py | 7 |
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) |
