Debian Codegraph @

examples/taint_test2

raw
1 use Tk ();
2 my $mw = Tk::MainWindow->new();
3 my $l = $mw->Label(-text=>'see the error')->grid;
4 if (@ARGV)
5 {
6 # trigger a error to see how a 'normal' error looks like
7 $l->afterIdle([$l, 'configurex', '-text', 'no error found']);
8 }
9 else
10 {
11 # Fails with -T
12 $l->afterIdle([$l, 'configurex', '-text', 'no error found']);
13 }
14 Tk::MainLoop;
15