Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: df327776b61a0a02bf4af268cba46f0fc2a6bce7
Ticket: 645964ffffffffffffffffffffffffffffffffff
"update idle" fails to redraw tk windows
User & Date: petasis on 2002-11-30 06:25:51
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    There seems to be an annoying problem with the
    "update idletasks" option of the update command.
    While this command is supposed to redraw windows,
    in the recent versions of tcl it does not. Consider for 
    example the following small script:
    
    pack [label .x -text label]
    
    for {set i 0} {$i <= 100000} {incr i} {
      ## This will at least redraw the windows...
      .x configure -text "Count: $i"
      update idletasks
    }
    
    The behaviour of the above script is very strange.
    In my windows XP machine, the above script only
    updates the label widget (where its text changes) and
    the rest of the . window is not painted at all,
    showing the desktop part that was beneath the
    window at its creation time. If you move a window
    and pass it over the . window, it turns white,
    the label does not visually update any more and even 
    when the computation is finished, the window remains
    white. You have to interact with the window (i.e.
    by moving it) to be drawn.
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "petasis"
  9. subsystem changed to: "02. Event Loops"
  10. title changed to: ""update idle" fails to redraw tk windows"
  11. type changed to: "Bug"