📜  提高 Tkinter 分辨率 Ctypes,增加 Tkinter 窗口分辨率 Ctypes - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:10.797000             🧑  作者: Mango

代码示例1
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()