Debian Codegraph @

examples/spinbox

raw
1 #!/usr/local/bin/perl -w
2 use strict;
3 use Tk;
4 use Tk::widgets qw(Button Spinbox);
5 #use Carp ();
6 #$SIG{'__DIE__'} = \&Carp::confess;
7
8 print "Spinbox:$Tk::Spinbox::VERSION\n";
9
10 my $mw = MainWindow->new();
11 my $sb = $mw->Spinbox(-from => 1, -to => 100)->pack;
12
13 #use Data::Dumper;
14 #print Dumper([$sb->configure]);
15
16 $sb = $mw->Spinbox(-values => [qw[one two three four]])->pack;
17
18
19 $mw->Button(-text => 'Quit', -command => [destroy => $mw])->pack;
20 MainLoop;
21