Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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 rifling through the Monastery: (5)
As of 2015-10-08 20:36 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (226 votes), past polls