Hi,
I am very new to pygtk, please don't mind if my question is too simple or
stupid.
I am still learning pygtk and before I ask my doubt here is my code
import gtk, pygtk
pygtk.require('2.0')
import time
class test():
def __init__(self):
self.window=gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect=('delete_event',lambda wid, we: gtk.main_quit())
self.window.show()
print "show"
time.sleep(2)
self.window.hide()
print "hide"
time.sleep(3)
self.window.show()
print "show"
if __name__ == "__main__":
test()
gtk.main()
as I read on web time.sleep should produce an interval, and the above code
should display a window and hide it after 2 seconds
and then display it again after 3 seconds
But for me it doesn't work the same, the windows just appears suddenly after
3 seconds and I can see the output
show
hide
show
So I would like to know where I am doing the mistake,
Regards
phanindra
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/