Pierre N wrote:
Hi,
You should check out this great tutorial first:
http://www.moeraki.com/pygtktutorial/pygtktutorial/index.html
You'll see that the easiest way to achieve this is to create a class
where you initialise all your windows/dialogs (and you hold a reference
to all of them) and another one where you handle all the events. From
the event_handler (on_bla_button_clicked) you can then call methods
which are going to give you references to these windows/dialogs:
win1=main.get_window1()
win2=main.get_window2()
win1.show()
win2.hide()
sorry, but i didn't understands how to call diferent files/classes
it's seems not logical to load all the windows and then to handle them
since, if the user didn't "clicked" to show a window why should i
load it?
i would be very happy to get some example code that shows how
to use several files and classes
i did looked at the pygtk-demo.py but it was not what i was looking for
thanks again
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/