in reply to Reloading a perltk canvas tile

Hi rossiya,

Try using packForget at the place in the code where you want to remove it:

$graph->packForget();

That should take it out of the window from which it's being managed.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Reloading a perltk canvas tile
by rossiya (Novice) on Oct 10, 2007 at 14:21 UTC
    Thanks, I didn't know about packForget(). Here $graph is just a Tk::PlotDataset canvas so $graph->packForget() essentially wipes it out. I will try layering canvases, but for my simple needs drawing the image first, then overwriting with the plot in a single canvas does the trick. But I came across Tk::Zinc thanks to your suggestion. I may become hooked on that, based on the screenshot eye candy.