Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Gtk2::GladeXML::Simple 0.32

    Download button

    No screenshots available
    Downloads: 361  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marco Antonio Manzo | More programs
    Perl Artistic License / FREE
    July 13th, 2006, 17:25 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Gtk2::GladeXML::Simple description

    Gtk2::GladeXML::Simple is a clean object-oriented interface to Gtk2::GladeXML.

    Gtk2::GladeXML::Simple is a clean object-oriented interface to Gtk2::GladeXML.

    SYNOPSIS

    package MyApp;
    use base qw( Gtk2::GladeXML::Simple );

    sub new {
    my $class = shift;
    my $self = $class->SUPER::new( $gladefile );
    return $self;
    }

    ...

    # Signal handlers are methods of your class
    sub on_button_clicked {
    my $self = shift;
    # You have access to your widgets directly
    # or using $self->get_widget( widget_name )
    my $button = $self->{button1};
    }

    Gtk2::GladeXML::Simple is a module that provides a clean and easy interface for Gnome/Gtk2 and Glade applications using an object-oriented syntax. You just make Gtk2::GladeXML::Simple your application's base class, have your new call SUPER::new, and the module will do the tedious and dirty work for you.

    Gtk2::GladeXML::Simple offers:

    Signal handler callbacks as methods of your class.
    sub on_button1_clicked {
    my $self = shift; # $self always received as first parameter
    ...
    # do anything you want in a OO fashioned way
    }

    Autoconnection of signal handlers.

    Autocalling of creation functions for custom widgets.

    Access to the widgets as instance attributes.

    my $btn = $self->{button1}; # fetch widgets as instance attributes by their names
    my $window = $self->{main_window};
    my $custom = $self->{custom_widget};

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Perl module | Gtk2 GladeXML | XML library | Gtk2::GladeXML::Simp | Gtk2 | GladeXML

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM