diff options
Diffstat (limited to 'examples/opengl/hellogl2/mainwindow.py')
| -rw-r--r-- | examples/opengl/hellogl2/mainwindow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.py b/examples/opengl/hellogl2/mainwindow.py index d5fba7e26..ce00b66f5 100644 --- a/examples/opengl/hellogl2/mainwindow.py +++ b/examples/opengl/hellogl2/mainwindow.py @@ -14,9 +14,9 @@ class MainWindow(QMainWindow): def __init__(self): super().__init__() menuWindow = self.menuBar().addMenu("Window") - menuWindow.addAction("Add new", QKeySequence(Qt.CTRL | Qt.Key_N), + menuWindow.addAction("Add new", QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_N), self.onAddNew) - menuWindow.addAction("Quit", QKeySequence(Qt.CTRL | Qt.Key_Q), + menuWindow.addAction("Quit", QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_Q), qApp.closeAllWindows) # noqa: F821 self.onAddNew() |
