Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Programming in Linux _ Php-gtk Destroy Window

Posted by: DS2K3 Jan 9 2005, 04:37 PM

OK, I have a small PHP-GTK App that creates a new window when a button is clicked. When another button is clicked, I want that window to go away. However, I cant find a fucntion to do it...

I tried

$window -> close();

and also

$window -> destroy();

I dont want to use gtk::main_quit(); because that will kill the whole thing. Any ideas?


Posted by: Hemant Jan 10 2005, 07:10 AM

Never tried PHP-GTK,but within the callback of second button,you should get the parent of the button(Which is the window,you want to destroy) and try using close();

Powered by Invision Power Board (
© Invision Power Services (