Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f4e64b8a64c18ed904aeebb0597d3e5dc5e331b4
Ticket: 645964ffffffffffffffffffffffffffffffffff
"update idle" fails to redraw tk windows
User & Date: vincentdarley on 2002-12-03 20:54:16
Changes

  1. closedate changed to: "2002-12-03T13:54:16"
  2. closer changed to: "vincentdarley"
  3. icomment:
    Logged In: YES 
    user_id=32170
    
    In that case, the documentation for 'update idle' needs to
    be changed to reflect what you describe, in particular your
    image of "draining the idle event queue" is quite absent
    from the documentation!  Also  'window size changes' needs
    to be replaced by 'any widget size changes', and perhaps any
    other common problems should be added to the list.
    
    From what you describe, if 'update idletasks' returned some
    information about whether there are any new idle events
    pending, this could be implemented in Tcl (and the
    possibility of a d.o.s. problem would then have to be dealt
    with in Tcl), for example:
    
    proc updateAllIdle {{iterations 10}} {
        while {[set res [update idletasks]]} {
            incr iterations -1
            if {$iterations == 0} { return $res }
        }
        return $res
    }
    
    I am disturbed by George's report of all this changing in
    newer versions of Tk, however.
    
    
    
  4. login: "vincentdarley"
  5. mimetype: "text/plain"
  6. username: "vincentdarley"