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

Attachment to classes derived from CTkComboBox or CTkOptionMenu does not work properly #37

Open
nexperion opened this issue May 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nexperion
Copy link

I am using classes derived from CTkComboBox and CTkOptionMenu as comboboxes and option menus. Attaching CTkScrollableDropdown to these derived classes does not work properly - the dropdown arrow does not open the dropdown, and the selected item is not returned to the combo box/option menu either.
This is because in the CTkScrollableDropdown constructor,

self.attach.winfo_name().startswith("!ctkcombobox")

is used to identify the class of 'attach', and that fails for derived classes. Why not using

isinstance(self.attach, customtkinter.CTkComboBox)

instead?

@Akascape Akascape added the enhancement New feature or request label May 26, 2024
@nexperion nexperion changed the title Attachment to classes derived from CTkComboBox or CTkOptionMenu does dot work properly Attachment to classes derived from CTkComboBox or CTkOptionMenu does not work properly May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants