Sebastian Kapp, oop with php-gtk

From: Date: Tue, 29 Oct 2002 15:37:04 +0000
Subject: Sebastian Kapp, oop with php-gtk
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-2574@lists.php.net to get a copy of this message
You can work with class , example: <?PHP dl(php_gtk.so); class program { var $gui = array(); function close(){ gtk::main_quit(); } function window($title){ $this->gui['window'] = new gtkwindow(); $this->gui['window']->connect('destroy', array(&$this,'close')); $this->gui['window']->set_usize('300','300'); $this->gui['window']->set_title($title); $this->gui['window']->show_all(); gtk::main(); } } $objetc = new program; $objetc->window('Hello world!'); ?> You can do all functions and work with this functions in any place of you class ... if you speak spanish i can help you ... because me english is very poor :-(

« previous php.gtk.general (#2574) next »