Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an exception when destroying a dropdown menu, then rescaling the screen #2246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nerogar
Copy link

@Nerogar Nerogar commented Jan 30, 2024

The init function of the CTkScalingBaseClass is called when creating a DropdownMenu. But the destroy function is never called. This can lead to an exception after destroying a CTkOptionMenu (which uses a DropdownMenu internally).

To reproduce:

  1. Create a CTkOptionMenu
  2. Destroy that CTkOptionMenu
  3. Move the window to another screen with a different scaling factor

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.

None yet

1 participant