CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Alias ._clicked() to .invoke()

Open Evolution0 opened this issue 3 years ago • 1 comments

Not sure why the user closed #226, as its still valid even in the dev branch.

As CTkButton does not seem to inherit Button it has no .invoke() method currently. Calling .event_generate('<Button-1>') on a CTkButton does not trigger it either, you need .invoke() unless you want to directly call the protected member of CTkButton: ._clicked()

Honestly it would be perfectly fine if .invoke() is just an alias of ._clicked(), the functionality seems the same and it would get rid of any IDE warnings.

Evolution0 avatar Nov 09 '22 19:11 Evolution0

I will add the invoke method

TomSchimansky avatar Nov 09 '22 20:11 TomSchimansky

Invoke method is now implemented with version 5.0.0.

TomSchimansky avatar Dec 02 '22 22:12 TomSchimansky