Skip to content

Commit aaf10e2

Browse files
committed
refactor: Use typed enum WindowType
PyQt6 requires typed enums; they are already available in PyQt5.
1 parent b0e1e94 commit aaf10e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/views/tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def __init__(self, win, *args):
441441
self.dock.setTitleBarWidget(QWidget()) # Prevents window decoration
442442
self.dock.setAttribute(Qt.WidgetAttribute.WA_NoSystemBackground, True)
443443
self.dock.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True)
444-
self.dock.setWindowFlags(Qt.FramelessWindowHint)
444+
self.dock.setWindowFlags(Qt.WindowType.FramelessWindowHint)
445445
self.dock.setFloating(True)
446446

447447
# Timer for processing new tutorials

0 commit comments

Comments
 (0)