Tk-QuickForm
view release on metacpan or search on metacpan
lib/Tk/QuickForm.pm view on Meta::CPAN
my $label = shift @options;
my $holder = $holderstack[0]->{holder};
my $row = $holderstack[0]->{row};
unless (defined $notebook) {
$holder->gridRowconfigure($row, -weight => 1);
$notebook = $holder->NoteBook(
# -borderwidth => 1,
)->grid(
-column => 0,
-row => $row,
-columnspan => 2,
-sticky => 'nsew'
);
$self->{NOTEBOOK} = $notebook;
}
my $page = $notebook->add($label, -label => $label);
my $h = $page->Frame->pack(-fill => 'x');
$h->gridColumnconfigure(1, -weight => 1);
$holderstack[0]->{row} ++;
unshift @holderstack, {
holder => $h,
lib/Tk/QuickForm.pm view on Meta::CPAN
type => 'page',
};
} elsif ($key eq '*section') {
my $label = shift @options;
my $h = $holderstack[0];
my $offset = $h->{offset};
my $lf = $h->{holder}->LabFrame(
-label => $label,
-labelside => 'acrosstop',
)->grid(@padding, -column => 0 + $offset, -row => $h->{row}, -columnspan => 2, -sticky => 'nsew');
$lf->gridColumnconfigure(1, -weight => 1);
$holderstack[0]->{row} ++;
unshift @holderstack, {
holder => $lf,
offset => 0,
row => 0,
type => 'section',
};
} elsif ($key eq '*frame') {
my $h = $holderstack[0];
my $offset = $h->{offset};
my $f = $h->{holder}->Frame->grid(@padding,
-column => 0 + $offset,
-row => $h->{row},
-columnspan => 2,
-sticky => 'nsew',
);
$f->gridColumnconfigure(1, -weight => 1);
$holderstack[0]->{row} ++;
unshift @holderstack, {
holder => $f,
offset => 0,
row => 0,
type => 'frame',
};
lib/Tk/QuickForm.pm view on Meta::CPAN
$options{$key} = $w;
$labels{$key} = $l;
} elsif ($type eq 'ext2') {
# $label is now actually the reference to the external object
# $values is now actually a boolean scalar to instruct the widget to expand
my $class = shift @opt;
my $w = $self->CreateClass($holder, $class, -validatecall => ['validate', $self], @opt);
$w->grid(
-column => 0,
-row => $row,
-columnspan => 2 + $offset,
-sticky => 'nsew',
-padx => 2,
-pady => 2
);
$options{$key} = $w;
} else {
my $label = shift @opt;
my $l = $holder->Label(
-width => $labelwidth,
-text => $label,
( run in 0.240 second using v1.01-cache-2.11-cpan-a5abf4f5562 )