Answers for "Improve Tkinter resolution Ctypes, Increase Tkinter window resolution Ctypes"

0

Improve Tkinter resolution Ctypes, Increase Tkinter window resolution Ctypes

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()
Posted by: Guest on July-27-2021

Code answers related to "Improve Tkinter resolution Ctypes, Increase Tkinter window resolution Ctypes"

Browse Popular Code Answers by Language