aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/cannon/t2.py
blob: d3adba3968ba868682005b57c504e3ce3e295637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# PySide6 tutorial 2


import sys

from PySide6.QtGui import QFont
from PySide6.QtWidgets import QApplication, QPushButton


if __name__ == '__main__':
    app = QApplication(sys.argv)

    quit = QPushButton("Quit")
    quit.resize(75, 30)
    quit.setFont(QFont("Times", 18, QFont.Bold))

    quit.clicked.connect(app.quit)

    quit.show()
    sys.exit(app.exec())