Skip to content

Commit

Permalink
refactor: Use typed enum WindowType
Browse files Browse the repository at this point in the history
PyQt6 requires typed enums; they are already available in PyQt5.
  • Loading branch information
Vekhir committed Jul 24, 2024
1 parent a505ba3 commit 60ea2f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/views/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def __init__(self, win, *args):
self.dock.setTitleBarWidget(QWidget()) # Prevents window decoration
self.dock.setAttribute(Qt.WidgetAttribute.WA_NoSystemBackground, True)
self.dock.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True)
self.dock.setWindowFlags(Qt.FramelessWindowHint)
self.dock.setWindowFlags(Qt.WindowType.FramelessWindowHint)
self.dock.setFloating(True)

# Timer for processing new tutorials
Expand Down

0 comments on commit 60ea2f2

Please sign in to comment.