Dom, 2004-09-05 �s 14:08 +0200, Marcus Habermehl escreveu: > Hello. > > Excuse my bad english. > > I would like to hide a gtk.Window when the user pressed a button. > > This is the function for the button. > > def startwm(*args): > for rb in rbs: > if rb.get_active() == True: > wm = rb.get_label() > window.hide() > system(wm) > window.show_all() > break > > But it does not operates. > > I have used window.hide() and window.hide_all(). > > What is wrong?
You have to dispatch gtk events before calling system(). Add while gtk.events_pending(): gtk.main_iteration() after window.hide() > > Can someone help me? > > Greetings > > Marcus > > _______________________________________________ > pygtk mailing list [EMAIL PROTECTED] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/ _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
