in reply to Tk optionmenu: remove little indicator thingy how?

Set indicatoron to false.

use Tk; my $mw = MainWindow->new(); my $opt = $mw->Optionmenu( -options => [[jan=>1], [feb=>2], [mar=>3]] )->pack; $opt->configure(-indicatoron => undef); MainLoop;

Replies are listed 'Best First'.
Re^2: Tk optionmenu: remove little indicator thingy how?
by water (Deacon) on Oct 09, 2004 at 19:54 UTC
    very cool, ++, thanks!

    i noticed you can't pass -indicatoron => undef in when creating the optionmenu; you have to do it subsequently with a configure.

    a TK oddity that doesn't make sense to me -- spoiled by perl dwiminess, I guess.

    Again, thanks!!

      It is true that you cannot pass in indicatoron parameter when you creating the optionmenu. That must be a bug ;-) Take care!