Re: [pygtk] hide on delete_event()

2008-12-09 Thread Paul Malherbe
Hi The following code  seems work OK. import gtk import time def on_window_delete_event(widget, data):     print "hide", widget     widget.hide()     while gtk.events_pending():     gtk.main_iteration()     time.sleep(10)     print "show", widget     widget.show()     return True win = 

Re: [pygtk] hide on delete_event()

2008-12-09 Thread Peyman
Hey Neil I tried your method, but it didn't work. I suspected it wouldn't seeing as how it's essntially the same thing I was doing. I wonder what could be causing my problem Thanks anyways Peyman Askari On 9 Dec 2008, at 03:34, Neil Dugan wrote: > Peyman wrote: >> Hello >> I am new to thi