use strict; use warnings; use Tk; my $w = MainWindow->new(); my $l = $w->Listbox()->pack(); for (qw(foo bar baz)){ $l->insert('end', $_); } # disable it afterwards $l->configure(-state => 'disabled'); MainLoop;
I don't see why $l->configure(-state => 'normal'); or $l->configure(-state => 'disabled'); shouldn't work for enabling/disabling the box. Try to insert a few prinit statements to verify that you're actually executing the code you think you are executing.
In reply to Re: Tk::ListBox questions
by moritz
in thread Tk::ListBox questions
by g_speran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |