in reply to [solved] Long-running DB query makes Tk application unresponsive

Maybe you should look at POE for this.

  • Comment on Re: Long-running DB query makes Tk application unresponsive

Replies are listed 'Best First'.
Re^2: Long-running DB query makes Tk application unresponsive
by radiantmatrix (Parson) on Oct 14, 2005 at 06:05 UTC

    Hm, POE does look like an excellent solution. I'm definately putting that on the shelf for the next iteration of this app. Unfortunately, it looks like the amount of work to learn POE and re-think my design in a POE-ish way is a little steep for a short-term solution.

    Nifty framework, though! I've heard mention of it before and never gave it more than a cursory glance, so I'm glad you reminded me of it.

    <-radiant.matrix->
    A collection of thoughts and links from the minds of geeks
    The Code that can be seen is not the true Code
    "In any sufficiently large group of people, most are idiots" - Kaa's Law

      The problem is how to break up your long running query into small enough chunks that your gui remains responsive. Once you've done that, you could just use a Tk-repeat().


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.