Thread MainWindow maximiert??: Perl/Tk
(17 answers)
Opened by format_c at 2003-09-03 14:16
perfekt ist es leider noch nicht, aber testet mal:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 #! /usr/bin/perl use warnings; use strict; use Tk; my $mw = MainWindow->new(); # groesse auf bildschirmlaufloesung setzen my $height = $mw->vrootheight; # $height = $mw->screenheight; my $width = $mw->vrootwidth; # $width = $mw->screenwidth; $mw->geometry("${width}x${height}+0+0"); $mw->overrideredirect(1); # rahmen usw entfernen # button, damit man noch herauskommt $mw->Button( -text => 'quit', -command => sub { exit })->pack; #$mw->bind("<FocusOut>", \&RestoreWindow); $mw->bind("<Leave>", \&RestoreWindow); MainLoop(); sub RestoreWindow { $mw->withdraw(); print "Raising\n"; $mw->deiconify(); $mw->raise(); } perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/ |