aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/textures
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-01-25 14:09:56 +0100
committerCristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2024-01-25 14:35:15 +0100
commit0555111721a2283a177864538fb437b31b148f63 (patch)
treee7a336310e08b55a4289046fa539088a39ee0fe1 /examples/opengl/textures
parentbd0f6c187c560a59884dd1c7640f9352ec457a6c (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/textures')
-rw-r--r--examples/opengl/textures/textures.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py
index 43edd4d58..87c1164b7 100644
--- a/examples/opengl/textures/textures.py
+++ b/examples/opengl/textures/textures.py
@@ -24,7 +24,7 @@ except ImportError:
messageBox.exec()
sys.exit(1)
-import textures_rc
+import textures_rc # noqa: F401
class GLWidget(QOpenGLWidget):
@@ -186,7 +186,7 @@ class Window(QWidget):
mainLayout.addWidget(glw, i, j)
glw.clicked.connect(self.setCurrentGlWidget)
- qApp.lastWindowClosed.connect(glw.freeGLResources)
+ qApp.lastWindowClosed.connect(glw.freeGLResources) # noqa: F821
self.currentGlWidget = self.glWidgets[0][0]