in reply to Setting options in Tk::Optionmenu without the callback?

(actually, I'm hoping there's an easier work-around that I'm missing).

It's crude and nasty, but it's a lot simpler than creating your own widget.

I had a go at that a while ago and it's definitely not for the faint hearted. Or even the bold and brassy if they have any sort of time contstraints.

my $changed = 0; sub show_choice { $changed = 0, return if $changed; print "got: ", shift, "\n" } sub change_ops { my $op = shift; my @newoptions = map { ++$. } ( 0 .. 3 ); $changed = 1; $op->configure( -options => \@newoptions ); }

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."