in reply to Re^2: Perl Tk Forgetting a Widget
in thread Perl Tk Forgetting a Widget

Why not just clear all the text from the widget?

So he could rebuild another page for that Frame, perhaps a Canvas with a chart on it?


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Replies are listed 'Best First'.
Re^4: Perl Tk Forgetting a Widget
by keszler (Priest) on Oct 17, 2011 at 04:23 UTC

    That would be a good reason. My statement was in reference to the OP's

    I want to be able to forget/destroy/delete the widget when I move to a new option in the menu so I can create a fresh one to output text from the next script the user will run. [emphasis added]

    If the purpose of destroying or forgetting is to clear the widget, using widget->delete is more efficient.