aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/widgetsgallery/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/widgetsgallery/main.py')
-rw-r--r--examples/widgets/widgetsgallery/main.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/widgets/widgetsgallery/main.py b/examples/widgets/widgetsgallery/main.py
new file mode 100644
index 000000000..e40077a38
--- /dev/null
+++ b/examples/widgets/widgetsgallery/main.py
@@ -0,0 +1,16 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+"""PySide6 port of the widgets/gallery example from Qt v5.15"""
+
+import sys
+
+from PySide6.QtWidgets import QApplication
+from widgetgallery import WidgetGallery
+
+
+if __name__ == '__main__':
+ app = QApplication()
+ gallery = WidgetGallery()
+ gallery.show()
+ sys.exit(app.exec())