File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626 QtCore = importlib .import_module (".QtCore" , libname )
2727 QtGui = importlib .import_module (".QtGui" , libname )
2828 QtWidgets = importlib .import_module (".QtWidgets" , libname )
29- WinIdChange = QtCore .QEvent .WinIdChange
3029 try :
30+ # pyqt6
3131 WA_PaintOnScreen = QtCore .Qt .WidgetAttribute .WA_PaintOnScreen
3232 WA_DeleteOnClose = QtCore .Qt .WidgetAttribute .WA_DeleteOnClose
3333 WA_InputMethodEnabled = QtCore .Qt .WidgetAttribute .WA_InputMethodEnabled
3434 PreciseTimer = QtCore .Qt .TimerType .PreciseTimer
3535 KeyboardModifiers = QtCore .Qt .KeyboardModifier
3636 FocusPolicy = QtCore .Qt .FocusPolicy
3737 Keys = QtCore .Qt .Key
38+ WinIdChange = QtCore .QEvent .Type .WinIdChange
3839 except AttributeError :
40+ # pyside6
3941 WA_PaintOnScreen = QtCore .Qt .WA_PaintOnScreen
4042 WA_DeleteOnClose = QtCore .Qt .WA_DeleteOnClose
4143 WA_InputMethodEnabled = QtCore .Qt .WA_InputMethodEnabled
4244 PreciseTimer = QtCore .Qt .PreciseTimer
4345 KeyboardModifiers = QtCore .Qt
4446 FocusPolicy = QtCore .Qt
4547 Keys = QtCore .Qt
48+ WinIdChange = QtCore .QEvent .WinIdChange
4649else :
4750 raise ImportError (
4851 "Before importing rendercanvas.qt, import one of PySide6/PySide2/PyQt6/PyQt5 to select a Qt toolkit."
You can’t perform that action at this time.
0 commit comments