Jester_yang has asked for the wisdom of the Perl Monks concerning the following question:
Then, I want to delete those items, eg. test1, test2, test3 ... but remain the cascade menu ($menu_links) to update the menu with new items.my $menubar = $main->Menu(-type => 'menubar'); $main->configure(-menu => $menubar); my $menu_links = $menubar->cascade(-label => "Links", -tearoff => 0); $menu_links->command(-label => 'test1', -command => \&sub1); $menu_links->command(-label => 'test2', -command => \&sub2); $menu_links->command(-label => 'test3', -command => \&sub3); ……
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to remove items from a cascade menu in Tk?
by PodMaster (Abbot) on Jul 07, 2004 at 06:24 UTC | |
by Jester_yang (Initiate) on Jul 07, 2004 at 08:04 UTC | |
|
Re: How to remove items from a cascade menu in Tk?
by gri6507 (Deacon) on Jul 07, 2004 at 13:07 UTC |