Help - Search - Members - Calendar
Full Version: Php-gtk Destroy Window
Linuxhelp > Support > Programming in Linux
DS2K3
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?

D
Hemant
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();
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.