[Tkinter/Win32] Message box on app start -> mouse is dead
Florian Weimer
someone at deneb.cygnus.argh.org
Tue Jan 18 13:52:47 EST 2000
This code doesn't work on Windows (X11 is fine, though):
from Tkinter import *
import tkMessageBox
import sys
tk = Tk()
Button(tk, text="Exit", command=sys.exit).pack()
tkMessageBox.showinfo("Test app", "Click on Ok, then on Exit.\n"
+ "Do you see the problem?")
tk.mainloop()
(The application doesn't respond to mouse clicks after dismissing the
message box.)
Any suggestions? I think the problem is caused by the call to `showinfo'
before the Tk message loop is entered. But my startup code needs to
display some information.
More information about the Python-list
mailing list