Python/pyqt5/CODE/qt04x範例程式/qt402_FirstPyQt.py

19 lines
294 B
Python
Raw Normal View History

# -*- 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_())