Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Your experience with wxPerl seems to be different than the one that I have had. In the year that I've been using it I've found it to be much better documented and easier to use the Tk.

All the objects and methods map 1:1 to the C++ API documented here, and anything that is different in wxPerl is noted in that same document. You can also install Wx::Demo from CPAN, which is a demo script that shows you how to use all of the widgets.

Up-to-date PPMs for ActiveState on Windows are available here. I also had no problem building the module with CPAN on Debian.

I haven't yet run into any classes missing from the perl port that I've wanted to use (although Wx is a huge library and I certainly haven't tried all of it.) In general, everything just works more consistently and looks better than in Tk. I had a lot of problems trying to inherit from Tk classes -- in WxPerl you just use base 'Wx::Whatever' and it works how you would expect.

It would definitely be worth your while to take another look at wxPerl. Although the API is a little less Perlish than Tk's, it is generally cleaner and more consistent, and the resulting GUI is much more attractive.

edit: I just re-read your post and noticed that you were concerned about using the C++ API reference instead of a dedicated Perl document. Essentially the only difference between the two would be changing the class names from wxWhatever to Wx::Whatever and changing the name of constructors to new, so maintaining a separate document would be a waste of effort (and a pain to keep in sync as the main Wx documentation evolves)

-- David Irving

In reply to Re: Perl losing momentum ? by dirving
in thread Perl losing momentum ? by spurperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found