hello everyone i have a question about dialog/pop-up windows
i'm trying to write a program that would show a menu of items. when the user opens an item (meanning clicks on the button) the main window would hide ( self.window.hide() ) and a new window would open instead .
when the user finished with the child window and press the "x" button
the window would then be closed and the main (previous) window would be shown
again (self.window.show)
some time ago i did this task with action-listener (using java) or post-messege (using c++ and mfc)
my REAL problem is to understand if this structure would be dialog based like or open a new window new windows.
i wrote an eample code: . file main1.py: ------------------ import gtk import another_file_module
class main1(gtk.Window): def __init__ ...
def clicked_on_button new_win=another_file_module.main_1() new_win.show_all() self.window.hide()
file another_file_module.py --------------------------------------
import gtk
class main_1(gtk.Window):
def __init__ :
.
.
gtk.Window.__init__(self) self.connect('destroy') -> what should i write here in order to close
this window and show the main1 window again
.
.
thanks aviad _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
