Problem with signal_connect
- From: Rosalind Mitchell <info swimbarrow co uk>
- To: "Gtk-Perl List" <gtk-perl-list gnome org>
- Subject: Problem with signal_connect
- Date: Thu, 15 Mar 2007 14:27:19 +0000
I recently upgraded to the lastest version of Kubuntu.
Since then I have been playing around with Gtk-based applications in Perl.
However, where I could do this fine before, even a simple example like
#!/usr/bin/perl -w
use strict;
use Gtk2 '-init';
my $mwin = Gtk2::Window->new( 'toplevel' );
$mwin->signal_connect( destroy => sub { Gtk2->main_quit } );
$mwin->show;
Gtk2->main;
generates the error message
Can't locate object method "signal_connect" via package "Gtk2::Window"
at ./test-gtk line 7.
Any bright ideas? Running under Kubuntu 6.10
Rosie
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]