run, show ,hide,destoy



 I have an aplication wich has some windows and wich is written with
glade-perl,
one window is main,
how can I switch between these  windows;
I can make it in such way:
from some handler of window1:

window2->run;

and in handler of window2:

window2->destroy;
Gtk->main_quit;


But when I do that, I can't reference all widgets in window2, they are
destroyed  too. I want to do some things with these  widgets.
Could someone explane me, how can I do that ?
I saw methods "show" "hide". How do they work ?

Sorry for my english.
Thank you.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]