arunmep has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; $main=MainWindow->new; $menubar=$main->Frame->pack(-side=>'top',-fill=>'x'); $ragimenu= $menubar->Menubutton(-text=>'Ragi')->pack(-side=>'left'); $ragimenu->command(-label=>'History',-command=>\&history); sub history { $test=$main->Entry->pack(); $ragimenu->configure(-state=>disabled); } MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to disable a menuitem at runtime
by jbrugger (Parson) on Jul 21, 2005 at 08:48 UTC | |
|
Re: how to disable a menuitem at runtime
by zentara (Cardinal) on Jul 21, 2005 at 11:51 UTC | |
|
Re: how to disable a menuitem at runtime
by anonymized user 468275 (Curate) on Jul 21, 2005 at 08:51 UTC | |
|
Re: how to disable a menuitem at runtime
by anonymized user 468275 (Curate) on Jul 21, 2005 at 09:55 UTC | |
by arunmep (Beadle) on Jul 21, 2005 at 10:11 UTC | |
by anonymized user 468275 (Curate) on Jul 21, 2005 at 10:50 UTC |