CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

AttributeError: '_tkinter.tkapp' object has no attribute 'block_update_dimensions_event'

Open arianGh1 opened this issue 2 years ago • 9 comments

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?

arianGh1 avatar Feb 05 '24 16:02 arianGh1

I think that the function 'block_update_dimensions_event' definition is not imported or the file containing it, is not imported.

akshitmittal299 avatar Feb 09 '24 07:02 akshitmittal299

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?

arianGh1 avatar Feb 09 '24 10:02 arianGh1

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?

ItsEsa avatar Mar 20 '24 15:03 ItsEsa

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 avatar Mar 26 '24 10:03 arianGh1

@arianGh1

  • Tried updating customtkinter to the latest version 5.2.2 using pip?

  • Could you please provide a sample code which produces this error?

Regards.

dipeshSam avatar Mar 26 '24 10:03 dipeshSam

Provide code please

Anonymous6598 avatar Mar 27 '24 09:03 Anonymous6598

Hello, I think this is a problem with dpi_scaling when using 2 screens with 2 different resolutions.

LeFouVolant13 avatar May 02 '24 09:05 LeFouVolant13

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.

marcos9818 avatar May 08 '24 06:05 marcos9818