POE::Session::GladeXML2

POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks.
Download

POE::Session::GladeXML2 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Martijn van Beers
  • Publisher web site:
  • http://search.cpan.org/~martijn/

POE::Session::GladeXML2 Tags


POE::Session::GladeXML2 Description

POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks. POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks.SYNOPSIS package test; use POE::Session::GladeXML2; # the name of the sub needs to match with the name you entered in # the glade signal handler dialog. sub on_button1_clicked { print STDERR "button clickedn"; } sub new { my $session = POE::Session::GladeXML2->create ( glade_object => $self, glade_file => 'test.glade', glade_args => 'widgetname', ); return $self; } Gtk2::GladeXML->init; my $foo = test->new; $poe_kernel->run();A simple helper module that lets you connect callback names from your .glade file with methods of an object. These methods are called as POE callback or postback methods. POE::Session::GladeXML automatically determines whether gtk expects the signal handler to return a value. If it does, a callback is used, otherwise a postback will be used. Requirements: · Perl


POE::Session::GladeXML2 Related Software