aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gui
diff options
context:
space:
mode:
authorAdrian Herrmann <adrian.herrmann@qt.io>2023-12-05 13:07:12 +0100
committerAdrian Herrmann <adrian.herrmann@qt.io>2023-12-06 12:56:12 +0100
commit55015346f4107ca3383e7ab54be38e72ec8b07d1 (patch)
treea6187eb90cc52356af576dfebd645f6485099a81 /examples/gui
parent592c734e57b00040329b49dfbe11869980dff88a (diff)
Examples: Fix a number of flake8 errors (part 2)
Import changes, i.e., removed or added imports. Pick-to: 6.6 Change-Id: Iadfa8f77846d8ffef0aeea9fd1a6e7e9c4df5106 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/gui')
-rw-r--r--examples/gui/analogclock/main.py3
-rw-r--r--examples/gui/rhiwindow/rhiwindow.py7
2 files changed, 4 insertions, 6 deletions
diff --git a/examples/gui/analogclock/main.py b/examples/gui/analogclock/main.py
index 7a5064a6e..b1177a479 100644
--- a/examples/gui/analogclock/main.py
+++ b/examples/gui/analogclock/main.py
@@ -4,8 +4,7 @@
import sys
from PySide6.QtCore import QPoint, QTimer, QTime, Qt
-from PySide6.QtGui import (QColor, QGradient, QGuiApplication, QPainter,
- QPalette, QPolygon, QRasterWindow)
+from PySide6.QtGui import QGuiApplication, QPainter, QPalette, QPolygon, QRasterWindow
"""Simplified PySide6 port of the gui/analogclock example from Qt v6.x"""
diff --git a/examples/gui/rhiwindow/rhiwindow.py b/examples/gui/rhiwindow/rhiwindow.py
index b18ce700a..fe054af48 100644
--- a/examples/gui/rhiwindow/rhiwindow.py
+++ b/examples/gui/rhiwindow/rhiwindow.py
@@ -5,11 +5,10 @@ import numpy
import sys
from PySide6.QtCore import (QEvent, QFile, QIODevice, QPointF, QRectF, QSize,
- QSizeF, qFatal, qWarning, Qt)
+ qFatal, qWarning, Qt)
from PySide6.QtGui import (QColor, QFont, QGradient, QImage, QMatrix4x4,
- QOffscreenSurface, QPainter, QPlatformSurfaceEvent,
- QSurface, QWindow)
-from PySide6.QtGui import (QRhi, QRhiBuffer, QRhiCommandBuffer,
+ QPainter, QPlatformSurfaceEvent, QSurface, QWindow)
+from PySide6.QtGui import (QRhi, QRhiBuffer,
QRhiDepthStencilClearValue,
QRhiGraphicsPipeline, QRhiNullInitParams,
QRhiGles2InitParams, QRhiRenderBuffer,