Python/pyqt5/CODE/元件使用範例/qt402_FirstPyQt.py

19 lines
294 B
Python

# -*- coding: UTF-8 -*-
"""
【簡介】
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget
app = QApplication(sys.argv)
window = QWidget()
window.resize(300, 200)
window.move(250, 150)
window.setWindowTitle('Hello PyQt5')
window.show()
sys.exit(app.exec_())