Dear Monks,
about a month ago I've found a very nifty and simple client/server application example which is written in Perl+Gtk2.
Unfortunately it's pretty outdated and I just can't start it.
First I had to change
Gtk2->init(\@ARGV); to
Gtk2::init(\@ARGV); and I came a bit further.
I played for hours to get over this hurdle. But right now I'm stuck with the
GSignal thing.
In fact this is the part, which won't work for me:
Gtk2::GSignal->connect($button_poll,"clicked", \&poll_host);
Gtk2::GSignal->connect($button_exit,"clicked", \&exit_app);
When I start the app, following error message appears:
$ ./client-gui.pl
Can't locate object method "connect" via package "Gtk2::GSignal" (perh
+aps you forgot to load "Gtk2::GSignal"?) at ./client-gui.pl line 91.
$
When I load "Gtk2::GSignal", then I get this message:
$ ./client-gui.pl
Can't locate Gtk2/GSignal.pm in @INC (@INC contains: /usr/local/lib/pe
+rl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/loc
+al/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/l
+ocal/lib/perl5/5.10.1 .) at ./client-gui.pl line 13.
BEGIN failed--compilation aborted at ./client-gui.pl line 13.
$
Now I don't know how to install Gtk2/GSignal. Simply issuing "install Gtk2::GSignal" or "install GSignal" in cpan shell won't work.
It seems that this GSignal thing doesn't even exist.
Here's the link to the full
client-gui.pl source code:
http://techrepublic.com.com/html/tr/sidebars/1058741-4.html
Can anybody help me with this?
Kind regards,
A~M
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.