Thread MainWindow maximiert??: Perl/Tk
(17 answers)
Opened by format_c at 2003-09-03 14:16
Gibt es für Linux nix was Win32::API gleichkommt?
Weil das Beispiel funktioniert perfekt. Oder man zieht von der geometry() Höhe X Pixel ab, je nachdem wie Hoch die Taskbar is. Unter windows sind das 28 Pixel. Also: Code (perl): (dl
)
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(); Die meisten PC Probleme befinden sich zwischen Bildschirm und Stuhl...
|