Basic button question

RT richard at NOstarfighterSPAM.freeuk.com
Wed Oct 3 13:32:29 EDT 2001


"Janos Blazi" <jblazi at hotmail.com> wrote in message
news:3bbb4a89_8 at news.newsgroups.com...
> I have a button that is bound to a call-back wich '<Button-1>'. Now when I
> press the button, it is not pressed and the call-back is called
immediately.
> It then creates a new toplevel window and a lot of processing happens.
> Finally, when th newly created toplevel returns (I use t.quit() and
> t.destroy()), the original button is pressed (a bit late) and remains
> pressed, unless I touch it with the mouse. All this look very, very ugly.
>
> Can somebody give me a hint?
>

Try binding <ButtonRelease-1> instead.

RT






More information about the Python-list mailing list