BikePower
view release on metacpan or search on metacpan
BikePower/Tk.pm view on Meta::CPAN
my $mb_file = $menuframe->Menubutton(-text => $s{'File'},
-underline => 0);
$mb_file->pack(-side => 'left') if $Tk::VERSION < 800;
$mb_file->command(-label => $s{'New'},
-underline => 0,
-command => sub {
eval {
$top->Busy;
my $bp = new BikePower;
$bp->tk_interface($parent);
$top->Unbusy;
};
warn $@ if $@;
});
$mb_file->command(-label => $s{'Clone'},
-underline => 1,
-command => sub {
eval {
$top->Busy;
my $bp = clone BikePower $self;
$bp->tk_interface($parent, %args);
$top->Unbusy;
};
warn $@ if $@;
});
$mb_file->command(-label => $s{'Close'},
-underline => 0,
-command => sub { $top->destroy });
my $mb_set = $menuframe->Menubutton(-text => $s{'Settings'},
-underline => 0);
$mb_set->pack(-side => 'left') if $Tk::VERSION < 800;
( run in 0.257 second using v1.01-cache-2.11-cpan-87723dcf8b7 )