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 <jeffh@xxxxxxxxxxxxxxx> To: Reinhard Erich Voglmaier <voglmaier@xxxxxxxxxxx> CC: ptk@xxxxxxxxxxxxxxxxxx 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
ptk@xxxxxxxxxxxxxxxxxx
https://mailman.stanford.edu/mailman/listinfo/ptk
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|