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)