Chuck Moreland wrote:
> 
> Hello All,
[...]
> So I downloaded Glade, because I believed I could use it to put GUI
> interfaces on Perl programs.  Is this true? If true, How?  
The main requirement is Gtk-Perl which is a module that binds Gtk+, Gnome
libglade (and many other libs) for perl. This allows you to construct and
use Gtk (and other) widgets and manipulate them to do something useful.
The current released version on CPAN is 0.6123 under namespaces Gtk and
Gnome. 

If you are happy to download a CVS version from gnome.org you can get all 
the latest improvements. See http://www.uk.gnome.org/devel/whatiscvs.shtml
for advice on how to do this and checkout module 'gnome-perl'. The CVS
version builds in a new and improved way, first Gtk, then the submodules 
like GdkImlib and then Gnome.

If you want to use Glade to build the UI definition, it is possible to use
the Glade definition files as the basis for an app. There are (at least) 
two ways to do it.

1) Get and build libxml and libglade and build Gtk-Perl with submodule 
Glade. This lets you construct the UI from the Glade file on the fly and
handle the UI events with signal handlers written in perl. 
AFAIK libglade needs a fairly recent version (CVS?) of libxml and does not
handle Gnome widgets yet.

2) Get my module Glade-Perl that generates perl code to construct the UI
and a subclass for signal handlers. You can then copy the subclass and edit 
the skeleton signal handlers to make an app. Glade-Perl is on CPAN in
ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/Glade/ and the current
version is 0.43 which constructs all Gtk/Gnome widgets in Glade 0.5.5.

> I am looking
> for some good documentation on how to get started.  I realized very
> quickly it does not have a very good help file, or any that I could
> find.
There is a great shortage of getting started documentation for Gtk with perl
but there are some pointers in file Documentation/Gtk-Perl-Docs.txt in the
Glade-Perl distribution. Someone has recently shown interest in writing a
'Getting Started' guide for Glade-Perl so perhaps there will soon be more.
You are at an advantage if you understand perl's 'OO' approach but you can
get this from the standard perl docs, especially 'perlmod', 'perltoot' and
'perltootc'.

HTH, Dermot


+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to