in reply to Tk grid in a Frame => freeze
#!/usr/bin/perl -- use warnings; use strict; use Tk; my $mw = tkinit; my $topframe = $mw->Frame(-bg=>'yellow')->grid( -row => 2, -column => +2 ); $topframe->Button( -text => "But 0 0")->grid( -row => 0, -column => 0 +); $topframe->Button( -text => "But 1 1")->grid( -row => 1, -column => 1 +); my $other = $topframe->Frame(-bg=>'red')->grid( -row => 2, -column => +0 ); $other->Button( -text => "Oth 0 0")->grid( -row => 0, -column => 0 ); $other->Button( -text => "Oth 1 1")->grid( -row => 1, -column => 1 ); $other->Button( -text => "Oth 2 0")->grid( -row => 2, -column => 0 ); $mw->MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Tk grid in a Frame => freeze
by leonardo-vittorio (Initiate) on Jul 01, 2009 at 14:02 UTC | |
by lamprecht (Friar) on Jul 01, 2009 at 14:46 UTC |