![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |
$mw->geometry("${width}x${height}+0+0");
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(); }
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#! /usr/bin/perl use warnings; use strict; use Tk; my ($mw,$h,$w); $mw = MainWindow->new(); $mw->overrideredirect(1); $h = $mw->screenheight; $w = $mw->screenwidth; $h-=28; $mw->geometry("${w}x${h}+0+0"); $mw->Button( -text => 'EXIT', -command => sub {exit 0;})->pack; MainLoop();
$mw->FullWindow
![]() |
|< 1 2 >| | ![]() |
18 Einträge, 2 Seiten |