diff options
author | Friedemann Kleint <[email protected]> | 2021-04-29 11:18:49 +0200 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2021-04-29 15:56:58 +0200 |
commit | 6d2af409eedee377b3c2ba0cd8156b9409fabd9d (patch) | |
tree | 660f8fd87f77c1030cf97cc65345b9a941a321e4 /sources/pyside6/tests/QtQml/bug_1029.py | |
parent | 88fff87519e741a3a999b8c1545834d116859faa (diff) |
Tests: Fix some space-related flake8 warnings
Change-Id: I9b0ad08839bf1246620c557ec304dfa90882907b
Reviewed-by: Christian Tismer <[email protected]>
Diffstat (limited to 'sources/pyside6/tests/QtQml/bug_1029.py')
-rw-r--r-- | sources/pyside6/tests/QtQml/bug_1029.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtQml/bug_1029.py b/sources/pyside6/tests/QtQml/bug_1029.py index 23dc8c26e..c46df7736 100644 --- a/sources/pyside6/tests/QtQml/bug_1029.py +++ b/sources/pyside6/tests/QtQml/bug_1029.py @@ -41,13 +41,15 @@ from PySide6.QtGui import QGuiApplication from PySide6.QtQml import qmlRegisterType from PySide6.QtQuick import QQuickView, QQuickItem + def register_qml_types(): class TestClass(QQuickItem): - def __init__(self, parent = None): + def __init__(self, parent=None): QQuickItem.__init__(self, parent) qmlRegisterType(TestClass, "UserTypes", 1, 0, "TestClass") + def main(): app = QGuiApplication([]) @@ -61,5 +63,6 @@ def main(): url = QUrl(__file__.replace(".py", ".qml")) view.setSource(url) + if __name__ == "__main__": main() |