Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Gui tutorials

by Anonymous Monk
on Mar 27, 2012 at 14:56 UTC ( #961946=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks

I've had to write a simple GUI app (entry field, Go button and a multi-line text field for output). As I had a couple of hours I thought I'd try wx or Win32::GUI but having installed them I quickly realised from the tutorials and demos that I'd never get my little app working in time.

So, reluctantly I installed Tk (which I used years ago) and following this excellent guide http://www.bin-co.com/perl/perl_tk_tutorial/hello_world.php I had my app running in 10 minutes (I'd already written the classes that did all the work).

Tk doesn't look too great so my question is does anyone know a decent tutorial for wx/Win32::GUI that's as good as the one I linked above?

Comment on Gui tutorials
Re: Gui tutorials
by Anonymous Monk on Mar 27, 2012 at 15:20 UTC
      These are basically the links I was unhappy with.

      The Win32-gui tutorial writers lost interest rapidly. Parts 6,7 and 8 are all 'TBD'

      The Wx tutorial is laughably bad. http://wxperl.sourceforge.net/tutorial/tutorial5.html 'TBC' before it's done anything.

        These are basically the links I was unhappy with.

        There are at least 20 links, keep going , view them all :)

        The Win32-gui tutorial writers lost interest rapidly. Parts 6,7 and 8 are all 'TBD'

        Why is this a problem? What would you like parts 6,7,8 to be?

        Personally I don't care for MFC but there are plenty of (non-perl) MFC Tutorials Available and they map pretty straightforward to Win32::GUI

        The Wx tutorial is laughably bad. http://wxperl.sourceforge.net/tutorial/tutorial5.html 'TBC' before it's done anything.

        What was it supposed to do?

        That is one of the reasons I gave you my wxWidgets / wxPerl / wxGlade tutorial because it links at least 10 other wxPerl tutorials, not to mention demos/examples. Here is another one RFC: WxPerl Simplified

Re: Gui tutorials
by Anonymous Monk on Mar 27, 2012 at 17:11 UTC
    While I agree that interfaces created w/ the rather crusty Tk module end up looking crusty, I've been very pleased with the results of the Tkx module & the newer tkk themed widget set. Have you looked into the Tkx module and tutorial on tkdocs.com?

    TJD

Re: Gui tutorials
by zentara (Archbishop) on Mar 27, 2012 at 17:44 UTC
    Tk doesn't look too great

    Tk only looks as good as the effort you put into the various color and font settings. If you want something that respects the system style settings in windows, you can try Gtk2. See Camelbox: A build of Gtk2-Perl for Windows or if you desire

    From: Gabor Szabo <szabgab@gmail.com> For ActiveState users * I assume you already have ActiveState Perl installed on your system. If not, download and install ActiveState Perl from http://activestate.com/Products/ActivePerl/ * Next you need to install the GTK+ 2.x.x runtime environment. The latest version can be downloaded from http://gimp-win.sourceforge.net/stable.html * Ensure that the <INSTALL_PATH>\GTK\2.0\bin directory is in your PATH after this installation. * Next you need to install the Win32 binary packages for gtk2-perl. Download and install the latest version of Gtk2.ppd and Glib.ppd from http://gtk2-perl.sourceforge.net/win32/ppm/ (Another way to install these ppds is as follows C:\Temp> ppm install http://gtk2-perl.sourceforge.net/win32/ppm/Gtk2.p +pd C:\Temp> ppm install http://gtk2-perl.sourceforge.net/win32/ppm/Glib.p +pd ) Your system should be ready to roll !
    There is a very good tutorial at Gtk2 Study Guide. Plus you can google for numerous others. Wx is object oriented like C++, whereas Gtk2 is more like C ( and Perl ) :-) Me ducks.

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://961946]
Approved by moritz
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-12-25 06:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (159 votes), past polls