Re: Tree Example
- From: muppet <scott asofyet org>
- To: Kenneth Swanson <kswanson watson wustl edu>
- Cc: Gtk2-Perl List <gtk-perl-list gnome org>, dvdwalt csir co za
- Subject: Re: Tree Example
- Date: Mon, 8 Jan 2007 20:12:21 -0500
On Jan 8, 2007, at 2:43 PM, Kenneth Swanson wrote:
http://forgeftp.novell.com//gtk2-perl-study/documentation/html/
c3835.html
Hrm... looks good, but this bit is not correct:
The list of pairs [given to Gtk2::TreeStore::set()] must contain as
many items as the number of columns in the Gtk2::TreeStore.
That implies that if the model has 8 columns, your set() call must
have 8 pairs. This is not true. You can set each column one at a
time if you wish. Also, if you are so pathological as to repeat
column indices in your pairs, the last one set wins.
$treestore->set ($iter, 0, 'one', 0, 'two', 0, 'three'); #
model will contain 'three'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]