📅  最后修改于: 2022-03-11 14:55:10.797000             🧑  作者: Mango
import tkinter as tk
import ctypes
ctypes.windll.shcore.SetProcessDpiAwareness(1)
root = tk.Tk()
root.geometry("200x150")
label = tk.Label(root, text = "Hello World")
label.pack(padx = 5, pady = 5)
root.mainloop()