in reply to Re: How to Change Defaults in Basic Tk Menu
in thread How to Change Defaults in Basic Tk Menu
Note that for readability you can also use the labels instead of numerical indices:
my $wrap = $menu->entrycget('View','-menu')->entrycget('Wrap','-menu') +; $wrap->invoke('Word');
@roho: I don't know how choroba did it, but I found out that you've been using a method $more->menu and failed to find documentation for it. This made me curious, and I found that this method gets you the hardcoded menu from the Tk::Text widget, only that you don't get a chance to set the -wrap option for this widget. The rest was a matter of digging through this menu and the Tk docs...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to Change Defaults in Basic Tk Menu
by roho (Bishop) on Aug 30, 2020 at 04:57 UTC |
In Section
Seekers of Perl Wisdom