Ich hab auch gerade mal versucht, Photo durch Animation zu ersetzen (für einen Bilderbutton), allerdings stürzt daraufhin Perl ab und zeigt nur noch eine Dialogbox mit "perl.exe hat Fehlerverursacht und wird geschlossen. Starten Sie das Programm neu. Ein Fehlerprotokoll wird erstellt.".
Tausche ich wieder gegen Photo aus, läuft alles Einwandfrei.
Perl: This is perl, v5.8.6 built for MSWin32-x86-multi-thread
Photo-Part:
my $ph = $mw->Photo(
-file => "$FindBin::RealBin/icons/" . $icon->{file},
-width => 40,
-height => 30,
);
Animation-Part:
my $ph = $mw->Animation(
-format => 'gif',
-file => "$FindBin::RealBin/icons/" . $icon->{file},
);
Im Button wird das Bild dann mit
eingebunden.
s--Pevna-;s.([a-z]).chr((ord($1)-84)%26+97).gee; s^([A-Z])^chr((ord($1)-52)%26+65)^gee;print;
use strict; use warnings; Link zu meiner Perlseite