Skip to content

Examples

1. 创建一个简单的窗口

python
import tkinter as tk

root = tk.Tk()
root.title('Simple Window')
root.geometry('300x200')

root.mainloop()