Skip to content

Commit 36c3c6a

Browse files
Ensure only ints passed to QFrame.move in splash
Otherwise this is a TypeError in the latest PyQt5.
1 parent f4da12e commit 36c3c6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript_utils/splash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, imagepath):
7272

7373
center_point = QtWidgets.QDesktopWidget().availableGeometry().center()
7474
x0, y0 = center_point.x(), center_point.y()
75-
self.move(x0 - self.w / 2, y0 - self.h / 2)
75+
self.move(x0 - self.w // 2, y0 - self.h // 2)
7676
self._first_paint_complete = False
7777

7878
def paintEvent(self, event):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy