Tk-DKW
view release on metacpan or search on metacpan
Tk/TabFrame.pm view on Meta::CPAN
package Tk::TabFrame;
use Tk;
use Tk::ChildNotification;
use Tk::Frame;
use Tk::Label;
use base qw (Tk::Derived Tk::Frame);
use vars qw ($VERSION);
use strict;
use Carp;
$VERSION = '0.01';
Tk::Widget->Construct ('TabFrame');
sub Populate
{
my $this = shift;
my $l_ButtonFrame = $this->{m_ButtonFrame} = $this->Component
(
'Frame' => 'ButtonFrame',
'-borderwidth' => 0,
'-relief' => 'flat',
'-height' => 40,
);
my $l_ClientFrame = $this->{m_ClientFrame} = $this->Component
(
'TabChildFrame' => 'TabChildFrame',
'-relief' => 'flat',
'-borderwidth' => 0,
'-height' => 60,
);
my $l_MagicFrame = $this->Component
(
'Frame' => 'MagicFrame',
);
$l_ButtonFrame->pack
(
'-anchor' => 'nw',
'-side' => 'top',
'-fill' => 'x',
);
$l_ClientFrame->pack
(
'-side' => 'top',
'-expand' => 'true',
'-fill' => 'both',
);
$this->ConfigSpecs
(
'-borderwidth' => [['SELF', 'PASSIVE'], 'borderwidth', 'BorderWidth', '1'],
'-tabcurve' => [['SELF', 'PASSIVE'], 'tabcurve', 'TabCurve', 2],
'-padx' => [['SELF', 'PASSIVE'], 'padx', 'padx', 5],
'-pady' => [['SELF', 'PASSIVE'], 'pady', 'pady', 5],
'-font' => ['METHOD', 'font', 'Font', undef],
'-current' => ['METHOD'],
'-raised' => ['METHOD'],
# These are historical. Their use is deprecated
'-trimcolor' => ['PASSIVE', 'trimcolor','trimcolor', undef],
( run in 0.411 second using v1.01-cache-2.11-cpan-71847e10f99 )