~ubuntu-branches/ubuntu/gutsy/horae/gutsy

« back to all changes in this revision

Viewing changes to 0CPAN/Tk-GBARR-2.06/examples/firebutton

  • Committer: Bazaar Package Importer
  • Author(s): Carlo Segre
  • Date: 2006-12-28 12:36:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061228123648-9xnjr76wfthd92cq
Tags: 064-1
New upstream release, dropped dependency on libtk-filedialog-perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Button with "repeat" effect.
2
 
#!/usr/local/bin/perl -w
3
 
use strict;
4
 
use Tk;
5
 
use Tk::FireButton;
6
 
 
7
 
my $i = 0;
8
 
 
9
 
my $mw = Tk::MainWindow->new();
10
 
my $fb = $mw->FireButton(
11
 
                -text=>'Fire',
12
 
                -command=>sub{$i++;}
13
 
                )->pack;
14
 
my $l = $mw->Label(-textvariable=>\$i)->pack(qw/-padx 10 -pady 6/);
15
 
 
16
 
Tk::MainLoop;
17
 
__END__