I know what an eventloop is, but I have background stuff going on in addition to making widgets work.

Widgets won't work right if you have background stuff going at the same time, unless your background stuff is forked or threaded. The execution pointer can only be at one place at a time in a process, and eventloop widgets won't work unless that eventloop is in control. Now there are exceptions to this. If in your while loop, you do DoOneEvent, and also run simple things like increments or file reads, you can keep things responsive. But if you try to run backticks or system on commands, or slow db accesses, it will make the gui unresponsive.

The best thing is to tell us what you are trying to do in the background.

As far as the DoOneEvent being slow, did you run my Tk version? I get very rapid response, where the digits 1 to 10 are repeatedly printed each second.


I'm not really a human, but I play one on earth Remember How Lucky You Are

In reply to Re: Tkx combobox error on quit by zentara
in thread Tkx combobox error on quit by Anonymous Monk

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.