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

Jeff Hobbs <[email protected]> Tue, 12 Dec 2006 15:06:46 -0800
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
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
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/ptk