Cuba has asked for the wisdom of the Perl Monks concerning the following question:
How can I change size of the button after resize of the main window in the table?#!/usr/bin/perl -w use strict; use Tk; use Tk::Table; my %pack_options = (-fill => 'both', -expand => 1); my $main_window = MainWindow->new(); my $frame = $main_window->Frame()->pack(%pack_options); my $table = $frame->Table(-rows => 1, -columns => 1)->pack(%pack_optio +ns); my $button = $table->Button( -text => "I'm not resizable... Why?! ='(" +, -command => sub {})->pack(%pack_options); $table->put(0, 1, $button); MainLoop();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Resize widgets in Table
by zentara (Cardinal) on Sep 26, 2008 at 14:39 UTC | |
by Cuba (Initiate) on Oct 14, 2008 at 06:28 UTC |