diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-01-25 14:09:56 +0100 |
---|---|---|
committer | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2024-01-25 14:35:15 +0100 |
commit | 0555111721a2283a177864538fb437b31b148f63 (patch) | |
tree | e7a336310e08b55a4289046fa539088a39ee0fe1 /examples/opengl/hellogl2 | |
parent | bd0f6c187c560a59884dd1c7640f9352ec457a6c (diff) |
examples: fix flake8 issues and add exceptions
Exception for:
- qApp and tr not being directly imported: F821
- *rc and qml modules being imported but not used: F401
Pick-to: 6.6 6.5 6.2
Change-Id: I5e40f3f54c1721ef3dc5d7f1e87d5fd8ec771b8e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/opengl/hellogl2')
-rw-r--r-- | examples/opengl/hellogl2/mainwindow.py | 2 | ||||
-rw-r--r-- | examples/opengl/hellogl2/window.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/hellogl2/mainwindow.py b/examples/opengl/hellogl2/mainwindow.py index d19053a26..69b9b66fe 100644 --- a/examples/opengl/hellogl2/mainwindow.py +++ b/examples/opengl/hellogl2/mainwindow.py @@ -16,7 +16,7 @@ class MainWindow(QMainWindow): menuWindow.addAction("Add new", QKeySequence(Qt.CTRL | Qt.Key_N), self.onAddNew) menuWindow.addAction("Quit", QKeySequence(Qt.CTRL | Qt.Key_Q), - qApp.closeAllWindows) + qApp.closeAllWindows) # noqa: F821 self.onAddNew() diff --git a/examples/opengl/hellogl2/window.py b/examples/opengl/hellogl2/window.py index a12636051..ad61d2f97 100644 --- a/examples/opengl/hellogl2/window.py +++ b/examples/opengl/hellogl2/window.py @@ -11,7 +11,7 @@ from glwidget import GLWidget def _main_window(): - for t in qApp.topLevelWidgets(): + for t in qApp.topLevelWidgets(): # noqa: F821 if isinstance(t, QMainWindow): return t return None |