CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Not an issue, a note on CTkButton

Open gowke opened this issue 3 years ago • 2 comments

The CTkButton does not pass 'event', easily modified in the CTkButton widget in the module, However when you want to capture id(event.widget) in your function you will come across an issue. The TCkButton consists of three elemnts- canvass, image label and text label. Clicking on either will return event for a respective widget,

Background where this can come up. When you create multiple widgets and a button to manipulate them, but one function which captures the event and identifies which widget is associated with it. Workaround is to associate three possible event.widget (CTk) on a click instead of one (standard Tk/TTk). The Tk id(event.widget) is replaced by three from CTk.

gowke avatar Nov 25 '22 10:11 gowke

I don't no if I can do anything about this?

TomSchimansky avatar Dec 06 '22 18:12 TomSchimansky

Maybe for the future! Great work! Thank you very much for this!

gowke avatar Dec 06 '22 19:12 gowke