Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2018-06-24 23:01 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.