[Tutor] How to make tkMessage function to have duration
Emeka
emekamicro at gmail.com
Sat Jul 30 09:40:41 CEST 2011
Hello All,
Say I have the below(code), .... I would want the message to last say 30
seconds and afterwards disappear. I won't want the user to be the one to
enable it to disappear.
Basically, what I want is to be able to show the user some message , and
after some seconds, the message goes away
import Tkinter
import tkMessageBox
top = Tkinter.Tk()
def hello():
tkMessageBox.showinfo("Say Hello", "Hello World")
B1 = Tkinter.Button(top, text = "Say Hello", command = hello)
B1.pack()
top.mainloop()
--
*Satajanus Nig. Ltd
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110730/64c12420/attachment.html>
More information about the Tutor
mailing list