tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
..a yellow rectangle on a canvas. Is it possible to modify the program so that the frame automaticaly adjusts to the width of the screen when the program is run? Thank you for any help.#!/usr/bin/perl -w use Tk; use strict; my $mw = MainWindow->new; my $c = $mw->Canvas( -width => 500, -height => 500, -background =>'blue', -scrollregion =>[0, 0, 100, 100]); $c->pack; $c->createRectangle(100, 100, 150, 150, -fill => 'yellow'); MainLoop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to adjust -tk program to the width of the screen?
by liverpole (Monsignor) on Oct 24, 2006 at 19:13 UTC | |
|
Re: How to adjust -tk program to the width of the screen?
by zentara (Cardinal) on Oct 24, 2006 at 20:10 UTC | |
|
Re: How to adjust -tk program to the width of the screen?
by Fletch (Bishop) on Oct 24, 2006 at 19:51 UTC |