Re: Getting the text from a Text widget embedded in a Canvas Widgets

"Reinhard Erich Voglmaier" <[email protected]> Wed, 13 Dec 2006 10:17:56 +0000
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
Jeff,

great, thx this works fine.
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. Is this possible ?

Again, thx a lot for your help

best

Reinhard

----------

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");
>
>Jeff

----------
Express yourself instantly with MSN Messenger! MSN Messenger Download today it's FREE!

--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk