Pyside6系列(一)

Python · 昨天 · 4 人浏览

Pyside系列是通過python來實現Windows程序開發。
基礎架構:

from PySide6.QtWidgets import QApplication, QMainWindow

class MyWindow(QMainWindow):
    def __init__(self):
        super().__init__()

if __name__ == '__main__':
    app = QApplication([])
    window = MyWindow()
    window.show()
    app.exec()

又或者這樣:

from PySide6.QtWidgets import QApplication, QMainWindow

app = QApplication()
window = QMainWindow()
window.show()
app.exec()
本站立足于美利堅合衆國,請讀者自覺遵守當地法律!如有違規,本站不承擔任何法律責任! This site is based in the United States of America, readers are requested to abide by local laws! If there are any violations, this site does not bear any legal responsibility! Theme Jasmine by Kent Liao