Tk-Month
view release on metacpan or search on metacpan
lib/Tk/Month.pm view on Meta::CPAN
my $width = 2;
# First create all the buttons in a grid.
# navigation row.
$self->{title} = $self->Menubutton(
-width => 15,
)->grid(
-row => 0,
-column => 2,
-columnspan => 4,
-sticky => 'nsew',
);
# Positions (0,0), (0,1), (0,6), (0,7) are the
# navigation buttons.
# other buttons......
for (my $c=0; $c<$#week+2; $c++)
{
lib/Tk/Year.pm view on Meta::CPAN
return $self->{Configure}->{-cols} unless @_;
# setting the value.
my $cols = shift;
$self->{Configure}->{-cols} = $cols;
# Pack the title.
$self->{title}->grid(
-row => 0,
-column => int(($cols-1)/2),
-columnspan => 2 - $cols %2 ,
-sticky => 'nsew',
);
# Positions (0,0), (0,1), (0,6), (0,7) are the
# navigation buttons.
my $n = 0;
for my $month (@{$self->{'months'}})
{
# decide the row and column.
( run in 0.247 second using v1.01-cache-2.11-cpan-a5abf4f5562 )