"I ran the code unmodified (Well, I added a "MainLoop" to the end since it was missing)."

The last line of the script I posted is:

MainLoop;

It's not missing. It never was missing.

I've even checked the "[download]" link (http://www.perlmonks.org/?abspart=1;displaytype=displaycode;node_id=1041950;part=2). No problems encountered: it's the last line there too.

This suggests that your download of the code I posted is corrupt. As a first step in troubleshooting this problem, try downloading it again and then see if the new copy works.

There is nothing in the code I posted that was not available in the earliest version of Tk on CPAN, which is dated 28 Jul 1999 (see Tk800.015). Furthermore, that version of Tk required Perl 5.004_04 (see Tk800.015 source) which is dated 1997-Oct-15 (see perlhist).

While you may choose to upgrade Perl or Tk to newer versions than you currently have, it would seem extremely unlikely that you would need to in order to get this script to work. For what it's worth, I'm using the latest versions of both (Perl 5.18.0 and Tk 804.031).

"The application paused before starting then displayed the progress bars full."

That just shouldn't happen. If, after following the suggestions above, you still see this behaviour, try reinstalling Tk.

"I think it may be an issue with my Tk package, I am going to try it on another machine."

If you think the problem lies with Tk, then reinstall Tk and try again. If you think the problem is your "machine", check CPAN Testers Reports for Tk before trying on another (arbitrary) "machine".

-- Ken


In reply to Re^5: Perl Tk Asynchronous Progress Updates by kcott
in thread Perl Tk Asynchronous Progress Updates by hermes1908

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.