Re: Gtk2::SimpleList question..
- From: Torsten Schoenfeld <kaffeetisch web de>
- To: gtk-perl-list gnome org
- Subject: Re: Gtk2::SimpleList question..
- Date: Tue, 23 Sep 2003 14:39:39 +0200
On Tue, 2003-09-23 at 14:07, Jim Donoghue wrote:
my $sl = Gtk2::SimpleList->new('Name'=>'text','Address'=>'text');
But if I try to dynamically assign column names/types and pass those as
a variable to it, the columns get reordered.
That's the nature of Perl's hashes. You can't predict their order. To
achieve what you want, simply use an array instead of a hash.
my @columns = (
Name => 'text',
Address => 'text'
);
my $sl = Gtk2::SimpleList->new(@columns);
HTH,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]