Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Begin Your Skyscraper

by scorpio17 (Monsignor)
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.


Comment on Re: Begin Your Skyscraper
Re^2: Begin Your Skyscraper
by Tux (Monsignor) 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:
      http://www.wxperl.co.uk/
      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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-08-01 02:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls