blob: 2b441391a8d9e3bef339abbb13983c4edcc8063f (
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
from __future__ import annotations
# 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.Weight.Bold))
quit.clicked.connect(app.quit)
quit.show()
sys.exit(app.exec())
|