eoin has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks,
I recently read the Perl News article about GTK2 and decided to look into it as I have alwats thought that Tk just didn't look good enough. I went to the GTK2 Win Bin home page and downloaded and installed all the dependecies and file nessicary.
I also found the following code to use as an example
Also I love if any one could point me to a good tutorial for using GTK -perl with windows becuase this is my first ever look at it.
Thanks
All the Best, Eoin...
I also found the following code to use as an example
When I run this code I get this error message#!/usr/bin/perl use Gtk2; Gtk2->init(\@ARGV); my $window = Gtk2::Window->new('toplevel'); my $button = Gtk2::Button->new_with_label("Hello World"); $window->add($button); Gtk2::GSignal->connect($button,"clicked", sub { Gtk2->quit(); r +eturn 0 }); $window->show_all(); Gtk2->main(); exit 0;
Usage: init(class) at gtk_example.pl line 3.Personally I don't have a clue what this means and I thought that I'd post this here while I keep looking around the docs.
Also I love if any one could point me to a good tutorial for using GTK -perl with windows becuase this is my first ever look at it.
Thanks
All the Best, Eoin...
If everything seems to be going well, you obviously don't know what the hell is going on.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Usage: init(class) @ GTK
by tcf22 (Priest) on Dec 13, 2003 at 22:08 UTC | |
by traveler (Parson) on Dec 13, 2003 at 22:15 UTC | |
Re: Usage: init(class) @ GTK
by Aristotle (Chancellor) on Dec 14, 2003 at 17:48 UTC | |
by eoin (Monk) on Dec 14, 2003 at 22:56 UTC | |
by Anonymous Monk on Dec 15, 2003 at 11:04 UTC | |
by eoin (Monk) on Dec 15, 2003 at 23:05 UTC |
Back to
Seekers of Perl Wisdom