setWindowTitle("PyQt5 Button Click Example"). widget.show() # 顯示widget. sys.exit(app.exec_()) # 讓視窗循環顯示. 執行解果如下.
確定! 回上一頁