3
BEGIN { $^W= 1; $| = 1; print "1..7\n"; }
4
END {print "not ok 1\n" unless $loaded;}
8
print "ok " . $ok++ . "\n";
10
my $top = new MainWindow;
13
$ne = $top->NumEntry->pack;
15
if ($@) { print "not " } print "ok " . $ok++ . "\n";
18
$top->NumEntry(-orient => "horizontal")->pack;
20
if ($@) { print "not " } print "ok " . $ok++ . "\n";
22
$ne->configure(-value => 1);
23
if ($ne->cget(-value) != 1) { print "not " } print "ok " . $ok++ . "\n";
26
if ($ne->cget(-value) != 2) { print "not " } print "ok " . $ok++ . "\n";
29
if ($ne->cget(-value) != 1) { print "not " } print "ok " . $ok++ . "\n";
32
my $ne2 = $top->NumEntry(-readonly => 1);
33
if (!$ne2->isa("Tk::NumEntry")) { print "not " }
34
print "ok " . $ok++ . "\n";