in reply to How to Change Defaults in Basic Tk Menu
my $wrap = $menu->entrycget(3, '-menu')->entrycget(3, '-menu'); $wrap->invoke(0);
Update: Another option is to set the associated variable to the expected value:
my $wrap = $menu->entrycget(3, '-menu')->entrycget(3, '-menu'); my $word = $wrap->entrycget(0, '-value'); # 'word' ${ $wrap->entrycget(0, '-variable') } = $word;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to Change Defaults in Basic Tk Menu
by haj (Vicar) on Aug 30, 2020 at 00:08 UTC | |
by roho (Bishop) on Aug 30, 2020 at 04:57 UTC | |
|
Re^2: How to Change Defaults in Basic Tk Menu
by roho (Bishop) on Aug 29, 2020 at 23:29 UTC | |
by choroba (Cardinal) on Aug 30, 2020 at 14:01 UTC |