cormanaz has asked for the wisdom of the Perl Monks concerning the following question:

Good day, Monks. I am trying to operate on a Tk canvas object via callbacks in Komodo GUI builder. One callback sub creates objects on the canvas, but I want to use a second callback sub to modify them. How do I get a list of all the objects on the canvas when I get to the second sub? Based on the docs I thought
$canvas->gettags(all);
would do the trick, but that doesn't seem to work.

Many thanks...Steve

Replies are listed 'Best First'.
Re: Manipulating Tk canvas from callbacks
by castaway (Parson) on Apr 20, 2005 at 14:09 UTC
    gettags('all') returns you all the tags associated with all the items on the canvas. It looks like you actually want
    $canvas->find('all');

    C.