Re: Gtk2::SimpleList

You can get the column from the treeview you are using to create the simplelist
$treeview = Gtk2::TreeView->new();
$simplelist = Gtk2::SimpleList->new_from_treeview ($treeview , 'Text Field' =>'text');
$column1 = $treeview->get_column(0);


Daniel Kasak wrote:

Chris Debenham wrote:

The width can be set on each column by using


Thanks for the response :)

Is there a way of getting hold of a column that's been created via:
Gtk2::SimpleList->new_from_treeview() ?

I can see how to create new columns:
$col = Gtk2::TreeViewColumn->new_with_attributes()

Maybe I could still use Gtk2::SimpleList->new_from_treeview() but not give it any columns right away, and then do:
$col = Gtk2::TreeViewColumn->new_with_attributes()

Is that the best way of doing it?



The following links have been placed here by the NUS Consulting internal spam filter and are for use by NUS Consulting staff only.
Please ingore these links.
Spam <> Not spam <> Forget previous vote <>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]