重新開始

# 用這樣夾 youtube
{{ < youtube d9IxdwEFk1c > }}

我們開始吧!

import sys
from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow, QVBoxLayout, QWidget

class HelloWorldApp(QMainWindow):
    pass

if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = HelloWorldApp()
    window.show()
    sys.exit(app.exec_())

另一個測試

Set some variables
import sys
from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow, QVBoxLayout, QWidget

class HelloWorldApp(QMainWindow):
    pass

if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = HelloWorldApp()
    window.show()
    sys.exit(app.exec_())

警告

This is a warning notice.. Be warned!