| Daniel Kasak 2007-06-22, 7:59 am |
| On Thu, 2007-06-21 at 20:21 +0200, tannhauser wrote:
> Hello,
>
> for a few days i try to get into Glade. So far it looks very interesting
> and promising to me. But it seems i'm too stupid to understand how
> GtkTreeView is working.
> Can someone provide me an easy to understand example or point me to some
> howto? I've read a few c- and python howtos, none of them helped me
> (well, i'm fairly new to perl and that's the first programming language i
> really try to get into). http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/
> helped my a lot with other stuff, but just confuses me with TreeView.
You can't set up columns and things for the treeview in glade.
But in the gtk2-perl distribution, there are examples in the examples/
and gtk-demo folders that give some examples of how to do it. You need
to create a model ( in Perl ), and create some treeview columns ( in
Perl ), and append the columns to the treeview, and then connect the
model to the treeview.
I have some examples of setting up different kinds of columns
( including some custom renderers ) in my project,
Gtk2::Ex::datasheet::DBI, which you can find at:
http://entropy.homelinux.org/axis
Dan
--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak@nusconsulting.com.au
website: http://www.nusconsulting.com.au
|