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

Re: Begin Your Skyscraper

by scorpio17 (Abbot)
on Aug 11, 2011 at 15:15 UTC ( #919895=note: print w/replies, xml ) Need Help??

in reply to Begin Your Skyscraper

You should also consider wxPerl. I like it much better than Perl/Tk - BUT, I also do a lot of C++ programming using wxWidgets, so I'm pretty familiar with the wx widget library. One issue, for example, is that Tk looks like Tk everywhere. wxWidgets uses the native GUI elements for whichever environment you're running on (so on windows, it looks more like a native windows app, etc.). Having said all that, I usually make everything into a webapp, then use the browser as my GUI.

Replies are listed 'Best First'.
Re^2: Begin Your Skyscraper
by Tux (Abbot) on Aug 11, 2011 at 16:36 UTC

    I'd absolutely not proclaim Wx to be better than Tk. They both serve a different public, both in end-user as in developer.

    I myself don't like Wx at all: I cannot get all the needed dependencies to compile/test/run on the operating systems I need a GUI on: HP-UX, AIX are amongst them. Tk builds out of the box: no dependencies needed whatsoever.

    I can have a small application up and running in Tk within minutes. And it looks nice. At least nice enough for the purpose. With Wx I need a whole lot more time for the design, and even then - to my eyes - it doesn't even look "better". If GUI/functionality compose time in Tk is estimated to 30/60 percent of my precious time, in Wx I'm likely to go to 80/20 percent. And I don't like Wx' documentation nor the overly complex OO style.

    I really absolutely do not care about the fact that you can make your GUI app look "native" with Wx. Most people indeed say that Wx is "beautiful", and that Tk is (butt) ugly. I do not agree at all, but that is a personal opinion. The fact that Tk looks like Tk everywhere is a pré!

    So "better" totally depends on what you want to achieve, and if it is possible at all.

    Enjoy, Have FUN! H.Merijn
      I didn't say wxPerl was "better" than Perl/Tk... I said I like it better. On most linux distributions, installation is as easy as "apt-get install wxperl". For windows, there are pre-built binaries available here:
      There are tools, like wxGlade, that make building your GUI a mostly drag-n-drop exercise. So, it is also possible to have a small app up and running in minutes with wxPerl.

      The OP listed learning Perl/Tk as an essential step, as if it were the ONLY possible solution for GUIs with perl, and that's clearly not the case. There's also PerlQt. Like all things perl, TMTOWTDI.

        You're absolutely right. I indeed misread "like better" as "is better". And because I like Tk that much, I immediately jumped in.

        runrig already mentioned that the Learning/Tk book is kinda useless and Mastering Perl/Tk is much better. I wholeheartedly agree. Though I'd like to add that after reading the latter, having the perl/Tk quick reference guide available is darn handy.

        ... and Glib and Gtk2 and X11::Protocol all to get into graphical front ends. Not really for starting out simple GUI apps though.

        Enjoy, Have FUN! H.Merijn

      I'd absolutely not proclaim Wx to be better than Tk.

      Read carefully

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919895]
[ambrus]: I'm currently in the process of rewriting my proof of concept programs. They sort of developped organically as I was experimenting, so now I've got an ugly mess of multiple programs and one-liners held together by nothing. I'll have to rewrite them to som
[ambrus]: ething that's both cleanly organized and mostly automated.
LanX in train, bad connection
[Corion]: ambrus: Yeah - we're in that situation too, except that there is no time to do the reorganizing :-/
[LanX]: ... so my boss started a project with the newest sun servers and invited the traders to come on weekend to test it... and they were so pleased, that they forced him to keep it in production...
[ambrus]: Corion: sure, this is the long-term plan. The short term is that I have to run this ungodly mess to get results from the new input data today.
[Corion]: ambrus: Most of our "automation" is tied to process exit codes and a shell pipeline :-\
[LanX]: ... a week later they realized that one of the databases - which recorded how much the other banks due to this bank - was not correctly plugged
[ambrus]: Corion: I have no problem with exit codes and shell pipeline. My problem is that the current process requires a lot of manual intervention from me, including editing the source codes.

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2017-03-29 11:49 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (350 votes). Check out past polls.