diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-25 17:40:11 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-03-29 08:07:54 +0100 |
| commit | 9289a63d85eaab0a7f286000e07843d3387f8c26 (patch) | |
| tree | 1dc96d76609c0be2d986a1791fde4f720eae1420 /examples/widgets/animation/easing/ui_form.py | |
| parent | faa2de3d4758b1c679685d41df0e4634f1069c83 (diff) | |
Brush up the easing example
- Remove the resource file with the outdated Qt logo and use the
builtin PySide logo instead.
- Use enum for the line type.
- Make line type radio box exclusive.
- Use snake case.
- Use class imports.
Task-number: PYSIDE-1112
Change-Id: Ie3e690ab56f619ec95b36b9101b06fa1e4704e5e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'examples/widgets/animation/easing/ui_form.py')
| -rw-r--r-- | examples/widgets/animation/easing/ui_form.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/animation/easing/ui_form.py b/examples/widgets/animation/easing/ui_form.py index 49aaf2ff0..d7e79ebd2 100644 --- a/examples/widgets/animation/easing/ui_form.py +++ b/examples/widgets/animation/easing/ui_form.py @@ -3,19 +3,19 @@ ################################################################################ ## Form generated from reading UI file 'form.ui' ## -## Created by: Qt User Interface Compiler version 5.14.0 +## Created by: Qt User Interface Compiler version 6.2.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ -from PySide6.QtCore import (QCoreApplication, QMetaObject, QObject, QPoint, - QRect, QSize, QUrl, Qt) -from PySide6.QtGui import (QColor, QFont, QIcon, QPixmap) +from PySide6.QtCore import * +from PySide6.QtGui import * from PySide6.QtWidgets import * + class Ui_Form(object): def setupUi(self, Form): - if Form.objectName(): + if not Form.objectName(): Form.setObjectName(u"Form") Form.resize(545, 471) self.gridLayout = QGridLayout(Form) @@ -45,7 +45,7 @@ class Ui_Form(object): self.lineRadio = QRadioButton(self.groupBox_2) self.buttonGroup = QButtonGroup(Form) self.buttonGroup.setObjectName(u"buttonGroup") - self.buttonGroup.setExclusive(False) + self.buttonGroup.setExclusive(True) self.buttonGroup.addButton(self.lineRadio) self.lineRadio.setObjectName(u"lineRadio") self.lineRadio.setChecked(True) |
