1
#!/usr/local/bin/perl -w
7
$SIG{__DIE__} = \&Carp::confess;
9
my $mw = MainWindow->new;
12
# Uncomment next line to avoid the warning - this a test of the warning
14
my $t1 = $mw->Scrolled('TextUndo', -wrap => 'none');
15
my $lb = $mw->Scrolled('Listbox');
16
$lb->packAdjust(-side => 'left', -fill => 'both', -delay => 1);
17
$lb->bind('<Double-ButtonRelease-1>',sub { $t1->Load($lb->getSelected) });
19
$t1->pack(-side => 'right', -fill => 'both', -expand => 1);
23
foreach $name (readdir(DIR))
25
$lb->insert('end',$name) if (-T $name);