CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: Tk Module main window size: Edit Log



mhx
Enthusiast / Moderator

Oct 20, 2001, 10:04 AM


Views: 1044
Re: Tk Module main window size

Variable interpolation is a bit difficult here, because $widthx instead of $width will be treated as an identifier. The following code works:

Code
use strict; 
use Tk;

my $mw = MainWindow->new;
my $width = $mw->screenwidth();
my $height = $mw->screenheight();
$mw->geometry("${width}x${height}+0+0");
$mw->title("WOProj");

MainLoop;

Hope this helps.

-- Marcus


Code
s$$ab21b8d15c3d97bd6317286d$;$"=547269736;split'i',join$,,map{chr(($*+= 
($">>=1)&1?-hex:hex)+0140)}/./g;$"=chr$";s;.;\u$&;for@_[0,2];print"@_,"



(This post was edited by mhx on Oct 20, 2001, 12:19 PM)


This post has not been edited


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives