Gnome(3pm)

Gnome3pm

Perl module for the gnome libraries

Usage

        use Gnome;
        Gnome->init('myapp');
        my $app = new Gnome::App("myapp", "myapp window title");
        $app->create_menus({type => 'subtree', label => '_File', 
                subtree => [
                ['item', '_Quit', undef, sub {exit}, 'stock', 'Quit'],
        ]});
        my $canvas = new Gnome::Canvas;
        $canvas->set_scroll_region(0, 0, 300, 300);
        $canvas->set_usize(300, 300);
        $canvas->root->new($canvas->root, 'Rect', 
                x1 => 10, y1 => 10, x2 => 150, y2 => 250, 
                fill_color => '#0f0ef2', outline_color => 'black');
        $app->set_contents($canvas);
        $app->show_all;
        Gtk->main;

Overview

The Gtk module allows Perl access to the widgets and other facilities in the Gnome libraries. You can find more information about Gnome on http://www.gnome.org. The Perl binding tries to follow the C interface as much as possible, providing at the same time a fully object oriented interface and Perl-style calling conventions.

You will find the reference documentation for the Gnome module in the "Gnome::reference" manpage. More information can be found on http://gtkperl.org.

Releases

3 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0
  2. 3.1
  3. 4.0

Author

Kenneth Albanowski, Paolo Molaro

From libgnome-perl 0.7009-12 in Debian 4.0 (Etch). Parsed by carta from the page's man source.