File: button.pl

package info (click to toggle)
libgtk-perl 0.7009-12
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,956 kB
  • ctags: 2,260
  • sloc: perl: 13,998; xml: 9,919; ansic: 2,894; makefile: 64; cpp: 45
file content (19 lines) | stat: -rwxr-xr-x 210 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use Gtk;

$NAME = 'Button';

init Gtk;

$w = new Gtk::Window -toplevel;

$w->signal_connect( destroy => sub {exit} );

show $w;

$b = new Gtk::Button 'Button';
$w->add($b);
show $b;

main Gtk;