1
#!/usr/local/bin/perl -w
5
my $mw = MainWindow->new;
7
$mb->Menubutton(-text => '~File', -font => 'fixed', -menuitems =>
9
[Button => '~Quit', -font => 'fixed', -command => [$mw,'destroy']]
11
my $f = $mw->Frame(-width => 100, -height => 100, -borderwidth => 2,
13
#-highlightborderwidth=> 3, # XXX Does not work (anymore?)
14
#-highlightforeground => 'black' # XXX Does not work (anymore?)
18
foreach $qual ('',qw(Meta- Shift- Control- Alt-))
20
$f->bind("<${qual}KeyPress>",[ \&showit, "${qual}KeyPress" ]);
32
print "$kind ",$ev->K," ",$ev->A,"\n";