You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
445 B

import sys
from PyQt6.QtWidgets import QApplication, QWidget
def main():
# 创建应用程序对象
app = QApplication(sys.argv)
# 创建窗口
w = QWidget()
# 设置窗口尺寸
w.resize(640, 320)
# 设置窗口位置
w.move(300, 300)
# 设置窗口标题
w.setWindowTitle('Simple')
# 显示窗口
w.show()
# 进入主循环
sys.exit(app.exec())
if __name__ == '__main__':
main()