Open Nianzu opened 10 months ago
By commenting out lines 186 and 188 in C:\Users\Zico\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py
as shown below, the application works as expected.
@classmethod
def check_dpi_scaling(cls):
new_scaling_detected = False
# check for every window if scaling value changed
for window in cls.window_widgets_dict:
if window.winfo_exists() and not window.state() == "iconic":
current_dpi_scaling_value = cls.get_window_dpi_scaling(window)
if current_dpi_scaling_value != cls.window_dpi_scaling_dict[window]:
cls.window_dpi_scaling_dict[window] = current_dpi_scaling_value
if sys.platform.startswith("win"):
window.attributes("-alpha", 0.15)
# window.block_update_dimensions_event()
cls.update_scaling_callbacks_for_window(window)
# window.unblock_update_dimensions_event()
if sys.platform.startswith("win"):
window.attributes("-alpha", 1)
new_scaling_detected = True
Sorry to ping again, is there any acknowledgment that this is an issue? I assume this is not intended behavior. Does anyone know what those lines in my comment do under normal circumstances? Perhaps they can be removed entirely? As I mentioned, there does not seem to be adverse effects from commenting out those lines.
@TomSchimansky , I face the same issue with CustomTkinter v5.2.0. Is there a solution or work around to this issue ? I tried the workaround as suggested by @Nianzu , but that messes up the overall UI size/scaling
Could you provide replication steps? I'd like for my PR to be something stable, so I'll work on it.
I'm getting a similar issue, did anyone figure out a work around for it?
@Nianzu, @Amchanie
Tried updating customtkinter
to the latest version 5.2.2
using pip?
Could you please provide a sample code which produce this error?
Regards.
I have an application that opens multiple windows, and when running on Windows 10 with Python3.9, opening a second window causes this error:
I've tried researching this, but I can't find anything. To my knowledge, I'm not missing any packages. I've uninstalled and reinstalled python, as well as tried this on multiple computers.