Thread Blinkende Icons (14 answers)
Opened by Gast at 2007-11-23 12:08

styx-cc
 2007-11-23 22:02
#102945 #102945
User since
2006-05-20
533 Artikel
BenutzerIn

user image
So gehts:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!usr/perl/bin
use strict;
use warnings;

use Tk;
use Tk::Photo;

my $mw = MainWindow-> new ();
my $icon = "icon1.bmp";

$mw-> repeat (1000, sub {
if ($icon eq "icon2.bmp") {
$icon = "icon1.bmp";
} else {
$icon = "icon2.bmp";
}
$mw->idletasks;
$mw->iconimage($mw->Photo(-file => $icon) );
}
);
MainLoop ();
Pörl.

View full thread Blinkende Icons