in reply to TK vs. Web pages

A lot of people seem to have latched onto the "web pages" phrase in your post, but it's not clear to me that you are developing a "distributed" application in a client/server environment. If that is indeed what you are after then a web application is pretty clearly the way to do it. But if you are developing a single user local application then Tk (or one of the other similar GUI tools for Perl) is much more obviously what you want.

It seems to me that the question is not GUI or Web, but more Client/Server or Single user - after that has been answered GUI or Web is much more obvious isn't it?


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: TK vs. Web pages
by apl (Monsignor) on Apr 03, 2007 at 12:16 UTC
    Thanks for noticing that. At this point, I'm more concerned with providing a test tool for use by a single QA person.

    Currently I use Getopt to allow my user to specify what he needs. Since the tool doesn't get used with great frequency, he always has to specify the help option before he can specify what he needs.

    I'd much rather be able to display a set of radio buttons and some scroll boxes so he can see his choices from the outset.

    My research turned up references to Tk. Then I started wondering why the standard reference was out of print...

      In that case Tk is a pretty clear choice. It is light weight for a job such as you describe and the somewhat non-native look doesn't matter at all. Actually you'd probably find you have it knocked out in crude form in an hour if you let pack manage the layout for you.

      The Tk documentation is ok, but tends to be a bit scattered with some bits in non-obvious places. Important bits to be familiar with are Tk::options, Tk::pack, Tk::Radiobutton, Tk::Text and Tk::Label.

      If you would like a light weight starting point take a look at Utility to capture parameters and perform a task or Tk Tutorial, Featuring Your Very Own "Perl Sig/OBFU Decoder Ring" for a tutorial that explores a little more of the functionality.


      DWIM is Perl's answer to Gödel

      Since apparently the user is already using a commandline interface, perhaps you should consider a console-based UI approach, e.g. curses?

        Something else for me to check out. I appreciate your comments.