Skip to content

fix: avoid missing block_update_dimensions_event on multi-monitor DPI changes - #38

Open
saschabuehrle wants to merge 1 commit into
Akascape:mainfrom
saschabuehrle:fix/issue-20-block-update-dimensions
Open

fix: avoid missing block_update_dimensions_event on multi-monitor DPI changes#38
saschabuehrle wants to merge 1 commit into
Akascape:mainfrom
saschabuehrle:fix/issue-20-block-update-dimensions

Conversation

@saschabuehrle

Copy link
Copy Markdown

Fixes #20

When the tooltip window receives scaling/DPI callbacks, customtkinter checks block_update_dimensions_event on toplevel windows. CTkToolTip inherits from plain tkinter.Toplevel, so this attribute is missing and can raise AttributeError after moving across monitors with different scaling.

This sets self.block_update_dimensions_event = False during init so the callback path stays compatible.

Greetings, saschabuehrle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AttributeError: CTkToolTip object has no attribute 'block_update_dimensions_event'

1 participant