Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Name spaces and Perl::Tk coding style

by ides (Deacon)
on Oct 05, 2005 at 18:21 UTC ( #497691=note: print w/ replies, xml ) Need Help??

in reply to Name spaces and Perl::Tk coding style

No you're right to break things into different modules. As for whether or not to use OO I would suggest using whatever is comfortable.

And use whatever namespace you want. If you app is called I'd create Foo::Widgets or something.

I agree Tk and most GUI widget sets are unwieldy to code with. One think you might think about is using Glade and Gtk2::GladeXML. This lets you "draw" your GUI, which is defined in an XML file, that that CPAN module reads and does all of the "building" for you. You then just write the callbacks and the portion you need to modify.

Hope this helps.

Frank Wiles <>

Comment on Re: Name spaces and Perl::Tk coding style

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://497691]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2016-04-30 04:46 GMT
Find Nodes?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW

    Results (441 votes). Check out past polls.