RE: [PHP-GTK] Letter to Community

From: Date: Wed, 28 Jul 2004 16:51:20 +0000
Subject: RE: [PHP-GTK] Letter to Community
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4875@lists.php.net to get a copy of this message
I'd forgotten we'd an expert on board :) > -----Original Message----- > From: Scott Mattocks [mailto:scott@crisscott.com] > Sent: 28 July 2004 17:44 > To: php-gtk-general@lists.php.net > Subject: Re: [PHP-GTK] Letter to Community > > > Steph wrote: > > > I'm not sure I'm following you. Are you suggesting that we > have PHP-GTK 2 > > (pure GTK+ API) + a bunch of optional PEAR(-style) wrappers to > make certain > > complex widgets easier to deal with? > > I like that idea. I think it would lower the learning curve a little > and more people would take to PHP-Gtk easier. It would be much easier > to call one method that builds an entire gtktree for you rather than > having to do everything yourself. > > class GtkEasyTree extends GtkEasyContainer { > > function GtkEasyTree() > { > $this->widget =& new GtkTree; > } > > // Container, widget and object methods are already wrapped > // Only need to wrap new tree methods > > function buildTreeFromArray(&$array) > { > foreach ($array as $label => $subTree) { > $treeItem =& new GtkTreeItem($label); > > // Called recursively until tree is full. > $this->buildSubTree($treeItem, $subTree); > > $this->widget->append($treeItem); > } > } > .... > } > > Scott Mattocks > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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