Replies: 1 comment 2 replies
-
@Yss-sss import ctypes
ctypes.windll.shcore.SetProcessDpiAwareness(0) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I am working on a small school GUI development assignment using CustomTkinter and noticed some issues with the scaling and resizing. When I use the window on my other monitor, some of the widgets just went missing because of scaling issues. I tried setting both True and False to the
customtkinter.ScalingTracker.deactivate_automatic_dpi_awareness
as shown below, but neither of them provides the outcome that I desire.I want it to be either both the window and all widgets within does not resize when Windows scaling changes OR the window resizes according to Windows scaling but the widgets maintain its scaling as it is.
I have a dual monitor setup (Laptop monitor, 1920x1080, 125% scaling; External monitor, 1920x1080, 100% scaling). If it helps clarify anything, I develop the assignment using the external monitor.
I also welcome any suggestions or opinions since I am very new to programming. Thank you!
**The code is a modified version of my entire code since its very untidy due to still under development
This is how it should look like (in 100% scaling)
This is how it look like in 125% scaling - The bottom part of the textbox is cut off due to scaling and window size issue.
Beta Was this translation helpful? Give feedback.
All reactions