AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'
when I run my code which is using custom tkinter , it arrises this error: File "C:\Users\Arian_Gh\AppData\Local\Programs\Python\Python312\Lib\site-packages\customtkinter\windows\widgets\scaling\scaling_tracker.py", line 186, in check_dpi_scaling window.block_update_dimensions_event() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Arian_Gh\AppData\Local\Programs\Python\Python312\Lib\tkinter_init_.py", line 2425, in getattr return getattr(self.tk, attr) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'
I first used python 3.10 , but now Im using 3.12 and it still arrises the error , what to do?
I think that the function 'block_update_dimensions_event' definition is not imported or the file containing it, is not imported.
I think that the function 'block_update_dimensions_event' definition is not imported or the file containing it, is not imported.
Thank you , how to fix that?
I think that the function 'block_update_dimensions_event' definition is not imported or the file containing it, is not imported.
Thank you , how to fix that?
Did you ever figure out how to fix the error?
I think that the function 'block_update_dimensions_event' definition is not imported or the file containing it, is not imported.
Thank you , how to fix that?
Did you ever figure out how to fix the error?
Nope
@arianGh1
-
Tried updating
customtkinterto the latest version5.2.2using pip? -
Could you please provide a sample code which produces this error?
Regards.
Provide code please
Hello, I think this is a problem with dpi_scaling when using 2 screens with 2 different resolutions.
Had the same problem and figured out that I was calling tkinter and customtkinter libs in the same classes, switched all to customtkinter and worked.