CustomTkinter
CustomTkinter copied to clipboard
Fixed an exception when destroying a dropdown menu, then rescaling the screen
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:
- Create a CTkOptionMenu
- Destroy that CTkOptionMenu
- Move the window to another screen with a different scaling factor