diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/bug_589.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/bug_589.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sources/pyside6/tests/QtWidgets/bug_589.py b/sources/pyside6/tests/QtWidgets/bug_589.py index 48faae17e..6b4afc74b 100644 --- a/sources/pyside6/tests/QtWidgets/bug_589.py +++ b/sources/pyside6/tests/QtWidgets/bug_589.py @@ -41,15 +41,17 @@ from PySide6.QtWidgets import QApplication, QGraphicsProxyWidget class CustomWidget(QGraphicsProxyWidget): - def itemChange(self, eventType, value): - QGraphicsProxyWidget.itemChange(self, eventType, value) + def itemChange(self, eventType, value): + QGraphicsProxyWidget.itemChange(self, eventType, value) + class Bug589(unittest.TestCase): - def testCase(self): - widget = QGraphicsProxyWidget() - custom = CustomWidget() - custom.setParentItem(widget) + def testCase(self): + widget = QGraphicsProxyWidget() + custom = CustomWidget() + custom.setParentItem(widget) + if __name__ == "__main__": - app = QApplication(sys.argv) - unittest.main() + app = QApplication(sys.argv) + unittest.main() |