Re: gtkTree
| From: | Michael Dransfield | Date: | Fri, 15 Mar 2002 15:19:35 +0000 |
| Subject: | Re: gtkTree | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1570@lists.php.net to get a copy of this message | ||
Thanks - i found gtkCTree worked... and was easier to accomplish.
Do you know if it is the same for GtkList and GtkCList?
On Fri, 2002-03-15 at 14:51, Steph wrote:
> You're probably finding that (as with listitem) you don't get treeitems displayed in
> the Glade version because it's never heard of them. Run the gui from PHP, if it's still
> not showing add $treeitem->show() after the append.
>
> Antique and scribbly test code attached.
>
> NB GtkCTree is less buggy/broken...
>
> ----- Original Message -----
> From: "Michael Dransfield" <mike@blueroot.net>
> To: "PHP-GTK gen" <php-gtk-general@lists.php.net>
> Sent: Friday, March 15, 2002 1:48 PM
> Subject: [PHP-GTK] gtkTree
>
>
> > I am trying to populate the contents of a Tree with the contents of a
> > database. I am using glade to design the GUI.
> >
> > i am trying this code;
> >
> > $sktree = $gx->get_widget("my_tree");
> >
> > $treeitem =& new GtkTreeItem("hello");
> > $sktree->append($treeitem);
> >
> > This produces no errors or warnings, but doesnt add anything to the
> > tree.
> >
> > Am i missing something?
> >
> >
> > --
> > PHP-GTK General Mailing List (http://gtk.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> ----
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php