diff options
Diffstat (limited to 'examples/widgets/tutorials/cannon/t1.py')
-rw-r--r-- | examples/widgets/tutorials/cannon/t1.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/cannon/t1.py b/examples/widgets/tutorials/cannon/t1.py new file mode 100644 index 000000000..62411ace2 --- /dev/null +++ b/examples/widgets/tutorials/cannon/t1.py @@ -0,0 +1,20 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause + +# PySide6 tutorial 1 + + +import sys + +from PySide6.QtWidgets import QApplication, QPushButton + + +if __name__ == '__main__': + app = QApplication(sys.argv) + + hello = QPushButton("Hello world!") + hello.resize(100, 30) + + hello.show() + + sys.exit(app.exec()) |