Re: [gtk-list] GTK & Perl



On Tue, Jun 30, 1998 at 08:43:13PM +0200, Alberto Manuel Brandao Simoes wrote:
>  	Hi!
> 	
> 	Can someone help me finding an simple example of a program
> using ondly perl and GTK+? Thanks, and good work!

######
use Gtk;

$win = new Gtk::Window('toplevel');
$button = new Gtk::Button("Bye!");
$button->signal_connect("clicked", sub { Gtk->exit(0) });
$button->show;
$win->add($button);
$win->show;

Gtk->main;
#######

You may find more examples in the Gtk tarball.
Also, someone was rewriting the gtk+ tutorial examples in perl,
but I forgot who :-(

lupus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]