eoin has asked for the wisdom of the Perl Monks concerning the following question:
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.
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 |