tags:

views:

122

answers:

1

I've been working with Perl for years and recently started learning how to do GUI via Gtk2. All examples and tutorials I've found illustrate simple one-window type applications. Anything with a second window is limited to a simple text entry or yes/no type dialogue. I want to learn how to build something with that next-step more complex. I know how to build the windows, etc. (manually, or via Glade) but I don't understand how to tie the program flow together.

I'm willing to buy books, etc. but I've only seen ones for C (and not in-stock, I'd have to order them unseen) and I'm worried the differences to Perl::Gtk2 might still add too much complexity. Can anyone either provide me an example, or point me to a tutorial, etc.

Thanks much,

Adam

+1  A: 

Check out Gtk2::Ex::FormFactory for writing consistent, data-driven Gtk applications, also look here for more information. Basically Gtk2::Ex::FormFactory helps you build applications rather than single screens. As the Gtk2::Ex::FormFactory widgets are simple wrappers over the Gtk2 classes, and the Perl Gtk2 classes are fairly simple wrappers over the C classes (except where the idioms are made more perlish), C-level experience in the Gtk libraries should not confuse you, in fact, the perl Gtk+2 manuals refer you back to the Gtk+2 Reference manual. See Gtk2::api for the differences.

MkV