bobbob911 has asked for the wisdom of the Perl Monks concerning the following question:
use Tk; $top = new MainWindow(-title=>"window1"); $menu = $top->Menu(); $filemenu = $menu->Menubutton(-label => "Test"); $exitButton = $filemenu->command(-label => "Test"); $top->configure(-menu => $menu); $top2 = new MainWindow(-title=>"window2"); $menu2 = $top2->Menu(); $filemenu2 = $menu2->Menubutton(-label => "Test2"); $exitButton2 = $filemenu2->command(-label => "Test2"); $top2->configure(-menu => $menu); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with multiple windows and drop down menus
by zentara (Cardinal) on Jan 26, 2010 at 16:40 UTC | |
by bobbob911 (Initiate) on Jan 26, 2010 at 18:31 UTC | |
by zentara (Cardinal) on Jan 26, 2010 at 18:42 UTC |