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

# PySide6 tutorial 2


import sys

from PySide6.QtCore import (QPoint, QRect, QTime, QTimer, Qt)
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())