Skip to content

[Support needed] custom widget properties #237

Discussion options

You must be logged in to vote

Hello.

Trying to override customtkinter.CTkOptionMenu so it fills up with data when opened. Similar to how in combobox you can use postcommand.

I copied everything from it's plugin builder under pygubu.plugins.customtkinter.widgets into a optionmenu.py and just renamed it. After that i also added the my custom property postcommand (Notice how i register it on the last line). Applying logic after deep diving into both customtkinter and pygubu code makes me think this is the way i'd do it? But apparently it's not. Debugging it will never append the new command property to the add_callbacks bag.

(Also note that after adding this optionmenu.py in pygubu-designer as custom widget, it won't …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ThePromidius
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants