Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

akineko akineko at gmail.com
Tue Sep 2 17:38:10 CEST 2008


On Sep 2, 5:46 am, "Guilherme Polo" <ggp... at gmail.com> wrote:
> Did you even try creating a checkbutton with indicatoron=False ? You
> could get surprised.

I didn't. My perception of checkbutton was a button with a check.
So, I tried as you suggested.
Yes, you are right. It is almost what I wanted (sticky behaviour).
By ignoring the ButtonRelease and Leave events, yes, it can perfectly
meet my requirements.
As checkbutton has deselect() method, this is a better approach, I
have to admit.

Thank you for showing me the correct way to implement.

Aki-



More information about the Python-list mailing list