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/charts | |
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/charts')
-rw-r--r-- | examples/charts/chartthemes/main.py | 4 | ||||
-rw-r--r-- | examples/charts/pointselectionandmarkers/utilities.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/charts/chartthemes/main.py b/examples/charts/chartthemes/main.py index 3ea7b629d..5787710ca 100644 --- a/examples/charts/chartthemes/main.py +++ b/examples/charts/chartthemes/main.py @@ -69,10 +69,10 @@ class ThemeWidget(QWidget): self.ui.antialiasCheckBox.setChecked(True) # Set the colors from the light theme as default ones - pal = qApp.palette() + pal = qApp.palette() # noqa: F821 pal.setColor(QPalette.Window, QColor(0xf0f0f0)) pal.setColor(QPalette.WindowText, QColor(0x404044)) - qApp.setPalette(pal) + qApp.setPalette(pal) # noqa: F821 self.update_ui() diff --git a/examples/charts/pointselectionandmarkers/utilities.py b/examples/charts/pointselectionandmarkers/utilities.py index ee36e855a..b27a2542b 100644 --- a/examples/charts/pointselectionandmarkers/utilities.py +++ b/examples/charts/pointselectionandmarkers/utilities.py @@ -4,7 +4,7 @@ from PySide6.QtGui import QImage, QPainter, QColor from PySide6.QtCore import Qt -import rc_markers +import rc_markers # noqa: F401 def rectangle(point_type, image_size): |