Re: Getting the text from a Text widget embedded in a Canvas Widgets
Jeff Hobbs <[email protected]> Wed, 13 Dec 2006 19:07:07 -0800
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <[email protected]> |
Reinhard Erich Voglmaier wrote: > One additional question: what I would like to achieve in addition is to > click on the text and get the original text back. For editing purposes. my $oldText = $canvas->itemcget($id, "-text"); > ------------------------------------------------------------------------ > From: /Jeff Hobbs <[email protected]>/ > To: /Reinhard Erich Voglmaier <[email protected]>/ > CC: /[email protected]/ > Subject: /Re: Getting the text from a Text widget embedded in a > Canvas Widgets/ > Date: /Tue, 12 Dec 2006 15:06:46 -0800/ > >Reinhard Erich Voglmaier wrote: > >>I have a text which I put into a canvas widget with > >>$canvas->create('text', I select it using $canvas->select and get > >>also from $canvas->type "text" as selected element. > >>Now I want to change the text , how can I achieve this ? > >>Or also read out the text I selected. > > > >Do something like: > > my $id = $canvas->create('text', -text => "foo"); > > $canvas->itemconfigure($id, -text => "bar"); --++**==--++**==--++**==--++**==--++**==--++**==--++**== ptk mailing list [email protected] https://mailman.stanford.edu/mailman/listinfo/ptk