Arunbear has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,

Is there anything like CGI::Application for Tk apps? Not a perfect analogy - but are you aware of a module that takes care of the plumbing and allows you to concentrate on the 'business logic'? (there is something called Tk::Application on CPAN, but it seems to be a long dead project)

Thanks

Replies are listed 'Best First'.
Re: CGI::Application for Tk apps?
by chanio (Priest) on May 30, 2004 at 03:52 UTC
    Hi,

    As far as I know, if it is a question of running Tk in a server, C::A should do.

    If that is not the case, you should manage well with O.O.Perl (the new magick). There is no need of fearing of loosing connection.

    But if that is the case, just save your data in a file with YAML .pm or any XML.pm and then read it again.

    Busines logic should be done by an analisis, I guess. It is better done before starting the code. It should be done in order to structure you future data. With a well structured data, you'll have 50% of the plumbing done.

    .{\('v')/}
    _`(___)' __________________________
Re: CGI::Application for Tk apps?
by eserte (Deacon) on Jun 01, 2004 at 18:43 UTC
    What would you expect from a hypothetical Tk::Application module/widget? CGI applications cannot be easily compared with GUI applications --- the former is typically built with multiple screens, while the latter typically has only one nearly static screen (and probably a number of dialogs). If you need something which requires a serial thread of execution, then you can take a look at Tk::Wizard.