POE::Session::GladeXML2 0.3.1
POE::Session::GladeXML2 is a Perl module that can emit POE events for Gtk2 callbacks. SYNOPSIS package test; use POE::
|
|||||||||||||||||||
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 {
[... object creation ...]
my $session = POE::Session::GladeXML2->create (
glade_object => $self,
glade_file => 'test.glade',
glade_args => 'widgetname',
[... POE Session params ...]
);
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:
tags
Download POE::Session::GladeXML2 0.3.1
Authors software
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
