Perl module for using Glade files.

Gtk::GladeXML is a very easy to use (though regrettably very badly documented ) module. To use an UI, first initialize the Gtk module, and load the Glade file thus:

# Create Sysadmin Toolbox UI object
$app = new Gtk::GladeXML("lartmaster.glade");

Then, to add signal handlers to the places you defined with Glade, use this sort of command:

$app->signal_autoconnect_from_package('SigHandlers');

Where the package name should tell in which package your signal handlers are.

Now, you can access widgets with $app->get_widget('widgetname'); and use all of their normal methods; for example, if you have a window called "mainwindow", you can show it with $app->get_widget('mainwindow')->show();.

Log in or register to write something here or to contact authors.