返回列表 發帖
  1. import tkinter as tk

  2. win = tk.Tk()
  3. win.title("主視窗")
  4. win.resizable(0, 0)  
  5. tk.Label(win, bg="Black", fg="White", text="Hello World!", font=("Arial", 16),
  6.          width=100, height=100, anchor="center").pack(padx=0, pady=0)
  7. win.mainloop()  
複製代碼

TOP

返回列表