Skip to content

Commit 01a05ee

Browse files
Replace QtGui.QSizePolicy β†’ QtWidgets.QSizePolicy
The former doesn't exist in PyQt5 or PySide. It must have been an alias left over for backward compatibility with Qt4 or something like that.
1 parent d5407de commit 01a05ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

β€Žlabscript_devices/IMAQdxCamera/blacs_tabs.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def initialise_GUI(self):
142142
layout.addWidget(self.ui)
143143
self.image = pg.ImageView()
144144
self.image.setSizePolicy(
145-
QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding
145+
QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding
146146
)
147147
self.ui.horizontalLayout.addWidget(self.image)
148148
self.ui.pushButton_stop.hide()

0 commit comments

Comments
Β (0)