Re: [gtk-list] Changing the label of a TreeItem in PERL



Hi Raul,

Raul Dias wrote:
> I have TreeItems created with:
> 
> $item = new_with_label Gtk::TreeItem 'label text';
> 
> I want to be able to change the 'label text' during run-time.
> I know that it is (should be) easy, but I don't have any documentation
> about which function/method to use.
> 
> Where can I find the available functions/methods in PERL that I can use?
The label is the child of the treeitem. I reckon that this will do what you
want (but there may be a better way):

  $item->child->set_text('New text');

> Another question:
> 
> Is possible to have more than one color/font in the same label
> (TreeItem in this case)?
Sorry, I don't know this one.

HTH, Dermot




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