Bootstrap

Python GUI

Python GUI


pip install PyQt5
pip install PySide2
pip install wxPython

这个下载太久了

import tkinter as tk
 
def main():
    # 创建主窗口
    root = tk.Tk()
    root.title("Hello World")
    
    # 创建一个标签,显示文本
    label = tk.Label(root, text="Hello World")
    label.pack()
    
    # 运行主循环
    root.mainloop()
 
if __name__ == "__main__":
    main()

类似java的swing写的桌面程序

;