您可以使用 Python GUI 库,例如 PyQt、wxPython、Tkinter 等来搭建 Windows 桌面应用。
下面是一个使用 Tkinter 搭建的简单 Windows 桌面应用的代码示例:
import tkinter as tk
def on_button_click():
label.config(text="Hello, Tkinter!")
root = tk.Tk()
root.title("Tkinter Desktop App")
button = tk.Button(root, text="Click Me!", command=on