diff options
| author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-09-19 16:49:09 +0200 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2022-09-21 18:01:52 +0000 |
| commit | cfaa4bc87d44e1c7c00b78c3cc0117559ef95cfe (patch) | |
| tree | e540e70c1fed34a04b1b59c17d0f8a2534cc4f8e /examples/widgets/animation | |
| parent | c5f2631bdfc1ba4e5fd87375c59227681964654c (diff) | |
examples: fix unused imports and minor errors in 'widgets'
Change-Id: I0aad3aefb2f036bf4edc2d0942f007045d605e26
Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/animation')
4 files changed, 7 insertions, 7 deletions
diff --git a/examples/widgets/animation/animatedtiles/animatedtiles.py b/examples/widgets/animation/animatedtiles/animatedtiles.py index 6ef62c2fd..b621ec117 100644 --- a/examples/widgets/animation/animatedtiles/animatedtiles.py +++ b/examples/widgets/animation/animatedtiles/animatedtiles.py @@ -8,11 +8,11 @@ import math from PySide6.QtCore import (QEasingCurve, QObject, QParallelAnimationGroup, QPointF, QPropertyAnimation, QRandomGenerator, QRectF, QTimer, Qt, Property, Signal) -from PySide6.QtGui import (QBrush, QColor, QLinearGradient, QPainter, +from PySide6.QtGui import (QBrush, QLinearGradient, QPainter, QPainterPath, QPixmap, QTransform) from PySide6.QtWidgets import (QApplication, QGraphicsItem, QGraphicsPixmapItem, QGraphicsRectItem, QGraphicsScene, QGraphicsView, - QGraphicsWidget, QStyle, QWidget) + QGraphicsWidget, QStyle) from PySide6.QtStateMachine import QState, QStateMachine import animatedtiles_rc diff --git a/examples/widgets/animation/appchooser/appchooser.py b/examples/widgets/animation/appchooser/appchooser.py index 5421c8c2f..e49f37dec 100644 --- a/examples/widgets/animation/appchooser/appchooser.py +++ b/examples/widgets/animation/appchooser/appchooser.py @@ -8,7 +8,7 @@ from PySide6.QtCore import (QPointF, QPropertyAnimation, QRect, QRectF, Qt, Signal) from PySide6.QtGui import QPixmap from PySide6.QtWidgets import (QApplication, QGraphicsScene, QGraphicsView, - QGraphicsWidget, QWidget) + QGraphicsWidget) from PySide6.QtStateMachine import QState, QStateMachine import appchooser_rc diff --git a/examples/widgets/animation/easing/easing.py b/examples/widgets/animation/easing/easing.py index 58341c0cf..88c57eaa1 100644 --- a/examples/widgets/animation/easing/easing.py +++ b/examples/widgets/animation/easing/easing.py @@ -8,10 +8,10 @@ import sys from PySide6.QtCore import (Property, QEasingCurve, QObject, QPropertyAnimation, QPoint, QPointF, QRect, QRectF, QSize, Qt) from PySide6.QtGui import (QBrush, QColor, QIcon, QLinearGradient, QPainter, - QPainterPath, QPen, QPixmap) + QPainterPath, QPixmap) from PySide6.QtWidgets import (QApplication, QGraphicsPixmapItem, - QGraphicsItem, QGraphicsScene, QGraphicsView, - QListWidget, QListWidgetItem, QWidget) + QGraphicsItem, QGraphicsScene, + QListWidgetItem, QWidget) from ui_form import Ui_Form diff --git a/examples/widgets/animation/states/states.py b/examples/widgets/animation/states/states.py index fa37c7b09..9b85e8373 100644 --- a/examples/widgets/animation/states/states.py +++ b/examples/widgets/animation/states/states.py @@ -12,7 +12,7 @@ from PySide6.QtWidgets import (QApplication, QGraphicsLinearLayout, QGraphicsObject, QGraphicsProxyWidget, QGraphicsWidget, QGraphicsScene, QGraphicsView, QGroupBox, QPushButton, QRadioButton, - QTextEdit, QVBoxLayout, QWidget) + QTextEdit, QVBoxLayout) from PySide6.QtStateMachine import QState, QStateMachine |
