dbarstis has asked for the wisdom of the Perl Monks concerning the following question:
Kind monks of the monastery, I have what should be a simple issue to resolve but am having trouble finding a solution. I have a simple script using Tk with a menubar. The script runs fine when invoked with the perl command but the menubar is no where to be seen when an executable is built with pp. This is on a Windows machine with Strawberry Perl 5.14.2 and Tk 804.033 (actually the DWIM install). Any and all wisdom would be greatly appreciated.
use Tk; my $mw = MainWindow->new; my $menubar = $mw->Menu(); $mw->configure( -menu => $menubar ); my $file = $menubar->cascade( -label => '~File' ); $file->command( -label => '~Quit', -command => sub { exit }, -accelerator => 'Ctrl-Q' ); $mw->bind( '<Control-q>', sub { exit } ); $mw->MainLoop(); exit;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl/Tk, PAR::Packer and Menus
by Anonymous Monk on Jul 29, 2015 at 23:20 UTC | |
by dbarstis (Novice) on Jul 30, 2015 at 00:14 UTC | |
Re: Perl/Tk, PAR::Packer and Menus
by fishmonger (Chaplain) on Jul 29, 2015 at 21:23 UTC | |
by dbarstis (Novice) on Jul 29, 2015 at 21:42 UTC | |
by fishmonger (Chaplain) on Jul 29, 2015 at 21:53 UTC | |
by dbarstis (Novice) on Jul 29, 2015 at 21:31 UTC | |
Re: Perl/Tk, PAR::Packer and Menus
by fishmonger (Chaplain) on Jul 29, 2015 at 22:05 UTC |
Back to
Seekers of Perl Wisdom