diff options
Diffstat (limited to 'examples/widgets/tutorials/cannon/t1.py')
-rw-r--r-- | examples/widgets/tutorials/cannon/t1.py | 21 |
1 files changed, 21 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..924069610 --- /dev/null +++ b/examples/widgets/tutorials/cannon/t1.py @@ -0,0 +1,21 @@ +# Copyright (C) 2022 The Qt Company Ltd. +# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause +from __future__ import annotations + +# 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()) |