Eradicatore:

Update: ...and if I'd learn to read the entire thread before posting, I'd've seen that you already thought of a better hack, and zentara already provided a nice starting point to a nice way to do it. IGNORE THIS POST!

* UGLY HACK ALERT * If you're offended by hacks, STOP READING NOW!

I'm no UI guy, so I would cheat with a hack: Instead of making a grid of labels (I assume you're just changing their color to draw the spectrum?), you could make a simple linear array off 100 of them, and simply change their heights. This will let you get the job done with fewer labels, and fewer operations (rather than update 4000 labels, you need only update 100), so you could get a better repetition rate.

...roboticus


In reply to Re^3: Is there some limit to the max num of widgets in perl tk? by roboticus
in thread Is there some limit to the max num of widgets in perl tk? by Eradicatore

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.