Tkinter: tkButtonDown, tkButtonEnter, tkButtonInvoke, tkButtonLeave, tkButtonUp

akineko akineko at gmail.com
Mon Sep 1 21:09:58 EDT 2008


On Sep 1, 5:52 pm, "Guilherme Polo" <ggp... at gmail.com> wrote:

> Are you trying to simulate clicks ? You should be doing it using
> event_generate, more below.
>

Actually, I was trying to implement a "sticky" button.
(Button Release is done later by another event)

I already tried event_generate.
It worked as far as I didn't touch other widgets.
But somehow it failed to work if event_generate is called after other
widgets are activated.

> You should expect them to be totally removed from Tkinter actually.

Sad to hear that. Controlling the button behaviour explicitly may not
be a common thing to do but it is still necessary thing to do. But you
gave me enough insights.

Aki-



More information about the Python-list mailing list