ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-bugs
tcl-bugs
[Tcl-bugs] [ tcl-Bugs-645964 ] "update idle" fails to redraw tk windows
by other posts by this author
Nov 30 2002 8:58PM messages near this date
[Tcl-bugs] [ tcl-Bugs-641261 ] Too short a value of TK_MULTI_MAX_PATH | [Tcl-bugs] [ tcl-Bugs-645964 ] "update idle" fails to redraw tk windows
Bugs item #645964, was opened at 2002-11-29 22:25
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=645964&group_id=10894

Category: 02. Event Loops
Group: 8.4.1
> Status: Closed
> Resolution: Invalid
Priority: 5
Submitted By: Georgios Petasis (petasis)
Assigned to: Jan Nijtmans (nijtmans)
> Summary: "update idle" fails to redraw tk windows

Initial Comment:
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.

----------------------------------------------------------------------

> Comment By: Jeffrey Hobbs (hobbs)
Date: 2002-11-30 12:58

Message:
Logged In: YES 
user_id=72656

update idle is doing exactly what you tell it to - only servicing 
the idle tasks.  If you want the other behavior, use 'update' 
without any arguments.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=110894&aid=645964&group_id=10894


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Tcl-Bugs mailing list
Tcl-Bugs@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-bugs

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved