Tkinter button problem

Randall Hopper aa8vb at
Wed Mar 8 19:23:55 CET 2000

Thomas Lane:
 |In a Tkinter program that I am writing, I have noticed that buttons that
 |caise a dialog to open stay "pressed" (ie. they are still sunken) when
 |the dialog returns. Buttons that do a command of some sort (ie. don't
 |open a dialog) seem to behave normally. Is this normal? Is there a way
 |to force a button to its non-sunken state before returning from my
 |button-click event handler? I have a feeling I'm overlooking something
 |simple. Any help would be greatly appreciated.

I'm guessing you're doing some sort of modal grab and not returning to the
Tk event loop for refresh events or something.

Right before you pop up the dialog, you might try a:

To give Tk a time slice to redraw things.

Randall Hopper
aa8vb at

More information about the Python-list mailing list