in reply to Clearing text in Tk
Or if you need to avoid the size of the label from shifting around or flickering, you could do something like:$label->configure(-text=>''); $label->configure(-text=> $newtext);
my $length = length $oldtext; my $text = ' ' x $length; $label->configure(-text=> $text); $label->configure(-text=> $newtext);
|
|---|