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

Hi,

I've been playing with the idea of a gui based app for sometime but I'm torn between implementing it with Perl/Tk or Perl/Wx. Those of you that have used both, when would you choose one over the other?

Jason L. Froebe

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

Replies are listed 'Best First'.
Re: TK or wxWidgets (wxWindows)?
by Ven'Tatsu (Deacon) on Sep 15, 2004 at 20:39 UTC
    I personalty find Tk easier to work with and bang out a quick working GUI.
    But Wx tends to look nicer and does a far far better job adapting it's look to the windowing system its running on. So if I have the time and need to make the GUI look nice I use Wx.
    Though very few of my projects start out we me having plenty of time or the need to make a nice looking GUI, so I use Tk quite a bit more.
Re: TK or wxWidgets (wxWindows)?
by ishnid (Monk) on Sep 16, 2004 at 09:54 UTC
    wxGlade is a GUI builder for wxWidgets. It's originally targetted at Python, but they've added Perl support to it too.

    Might be worth a look.
Re: TK or wxWidgets (wxWindows)?
by castaway (Parson) on Sep 16, 2004 at 08:35 UTC
    I've used Tk several times, probably because it was the first one I came across.. (I'd not heard of Wx then, Gtk existed but looked complicated, and Prima hadn't been born..) I find it fits my expectations of how things should work quite well, (my initial GUI-writing experience is with VB) and can be used to get something running fairly quickly.

    For my current project, I looked at Wx for a while, it didnt take me too long to get a window with menus up and running, by cannabalizing the various examples.. But the complex stuff seems not to fit my mindset, or be missing, so I went back to Tk. (Maybe one of these days.. )

    After reading this and pondering my current app, I'm now wondering how hard it would be to extract/isolate the GUI specific bits, and offer different interfaces.. Anyone ever tried this?

    C.