Gtk2::GladeXML 1.005 reviewDownload
Gtk2::GladeXML is a Perl module that create user interfaces directly from Glade XML files. SYNOPSIS # for a pure gtk+ glade p
Gtk2::GladeXML is a Perl module that create user interfaces directly from Glade XML files.
# for a pure gtk+ glade project
use Gtk2 -init;
$gladexml = Gtk2::GladeXML->new('example.glade');
$quitbtn = $gladexml->get_widget('Quit');
# for glade files using gnome widgets, you must initialize Gnome2
# before loading the glade file.
# this call also initializes gtk+ for us
Gnome2::Program->init ($appname, $version);
$gladexml = Gtk2::GladeXML->new('gnomeapp.glade');
Gtk2::GladeXML allows Perl programmers to use libglade, a C library which generates graphical user interfaces directly from the XML output of the Glade user interface designer.
Glade is a free user interface builder for GTK+ and GNOME. After designing a user interface with glade-2 the layout and configuration are saved in an XML file. libglade is a library which knows how to build and hook up the user interface described in the Glade XML file at application run time.
This extension module binds libglade to Perl so you can create and manipulate user interfaces in Perl code in conjunction with Gtk2 and even Gnome2. Better yet you can load a file's contents into a PERL scalar do a few magical regular expressions to customize things and the load up the app. It doesn't get any easier.
Gtk2::GladeXML 1.005 keywords