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

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

I'm trying to get up to speed with Tk and finding it hard going. To translate my knowledge of other GUIs to Tk I really need something like a systematic overview that says: Hey, Tk sort-of, but not quite, borrows its terminology from Motif (e.g. Geometry manager) but don't look for Combobox in the documentation because we call it "BrowseEntry". (go figure); the core widget set is ... here are the five programmable events handled by the Foobar widget and so on. Here is how to control the event loop...

The CPAN documentation seems plentiful but incomplete. For example, if there are parameters for Tk::MainLoop or any special methods for Tk::MainWindow it can't be discerned from the documentation.

Studying Perl source code is time consuming but even that isn't an option, since most of the Tk library is just a wrapper around a C library.

Often times a Perl wrapper for a cross-language library has sketchy documentation, so usually I look for a good cross-referenced API in the original language. But if such an animal exists, my Google fu isn't strong enough to find it. Maybe a reference to it is hiding somewhere in the CPAN documentation? The closest thing I could find was Tk API manual but it isn't very searchable - just a long list of manual pages. Furthermore, I don't have a clear idea of how any of this is mapped back to the Perl Tk without exploring the C code itself (and I can't even do that because I'm not sure where to find Tk.xs and tkGlue.c the two files supposedly responsible for connecting the C libraries to Perl, according to Tk). CallingTk is "under construction".

Most of yesterday I muddled through using CPAN and a tutorial here and there, but this isn't a very efficient way of learning something. Tutorials tend to focus on explaining concepts, not in laying out the full range of capabilities of a toolkit.

I feel like I'm missing something obvious - a Google link that was staring me in the face, perhaps?

Many thanks in advance, beth


In reply to Is there a better way to learn Tk? by ELISHEVA

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (5)
    As of 2014-08-30 19:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (293 votes), past polls