Tk-AppWindow
view release on metacpan or search on metacpan
lib/Tk/AppWindow.pm view on Meta::CPAN
package Tk::AppWindow;
=head1 NAME
Tk::AppWindow - An application framework based on Tk
=cut
use strict;
use warnings;
use Carp;
use vars qw($VERSION);
$VERSION="0.22";
use base qw(Tk::Derived Tk::MainWindow);
Construct Tk::Widget 'AppWindow';
use File::Basename;
require Tk::AppWindow::BaseClasses::Callback;
require Tk::Balloon;
require Tk::DynaMouseWheelBind;
require Tk::FilePicker;
require Tk::QuickForm;
require Tk::YAMessage;
use Tk::PNG;
use Config;
my $mswin = 0;
$mswin = 1 if $Config{'osname'} eq 'MSWin32';
=head1 SYNOPSIS
my $app = new Tk::AppWindow(@options,
-extensions => ['ConfigFolder'],
);
$app->MainLoop;
=head1 DESCRIPTION
An extendable application framework written in perl/Tk. The aim is maximum user configurability
and ease of application building.
To get started read L<Tk::AppWindow::OverView> and L<Tk::AppWindow::CookBook>.
This document is a reference manual.
=head1 CONFIG VARIABLES
=over 4
=item Switch: B<-appname>
Set the name of your application.
If this option is not specified, the name of your application
will be set to the filename of your executable with the first
character in upper case.
=item Switch: B<-commands>
Defines commands to be used in your application. It takes a paired list of
command names and callbacks as parameter.
my $app = $k::AppWindw->new(
-commands => [
do_something1 => ['method', $obj],
do_something2 => sub { return 1 },
],
);
Only available at create time.
=item Name : B<errorColor>
( run in 1.979 second using v1.01-cache-2.11-cpan-d7a12ab2c7f )