Gtk2::Ex::Builder - Gtk2::Widget Wrapper and Gtk2 Building DSL
use Gtk2 -init; use Gtk2::Ex::Builder; my $app = builder { info isa => 'Window'; sets title => 'My Application'; sets default_size => 400, 400; on delete_event => sub { Gtk2->main_quit }; hav builder { info isa => 'Button'; info is => 'my_button'; sets label => 'Hello World'; on clicked => sub { print "Hi\n" }; }; }; $app->build; print $app->get_widget('my_button')->get_label, "\n"; Gtk2->main;
This library is totally UNDER DEVELOPMENT and APIs COULD BE CHANGED WITHOUT NOTICE currently.
Any recommendations or criticisms or ideas are welcome.
Gtk2::Ex::Builder is a Domain-specific Language to compose several Gtk2 widgets, and also a wrapper for a Gtk2 widget.
The project is managed at http://github.com/am0c/Gtk2-Ex-Builder.
You can submit some issues here http://github.com/am0c/Gtk2-Ex-Builder/issues.
Any related mentions are welcome on irc.freenode.org in #perl-kr, and on http://twitter.com/am0c.
irc.freenode.org
#perl-kr
Hojung Youn <amorette@cpan.org>
This software is copyright (c) 2011 by Hojung Youn.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Gtk2::Ex::Builder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Ex::Builder
CPAN shell
perl -MCPAN -e shell install Gtk2::Ex::Builder
For more information on module installation, please visit the detailed CPAN module installation guide.