Tk not displaying due to tight loop during data access

From: Rob Strover (dislexic_wobmat_at_NOSPAMyahoo.com.invalid)
Date: 05/30/04


Date: Sun, 30 May 2004 06:38:23 GMT

What I'm trying to do is display some info on a tk listbox widget as the
result of various data accesses to existing files. Currently I'm working on
a Windows XP system.

If I have message boxes displayed for tracing purposes during this
processing then the data is displayed as required. Similarly, running my app
from within my debugger (RamDebugger) all goes well.

Given the fact that things go well when message boxes are displayed for
tracing purposes, I'm guessing that there is insufficient time for screen
display to occur given the data access activity in the background. Under
Visual Basic, in similar circumstances, one would use the 'DoEvents'
command, which yields time to the operating system (Windows), thereby
allowing screen updating to occur.

Is there a similar technique or command within the tcl/tk environment to
permit this yielding behaviour?

BTW, when I run my data access part without the tk display routines and
running under tkcon, all works well and the correct data is retrieved within
a reasonable time, as expected [displaying info to console via 'puts'
commands].

TIA,

        Rob.



Relevant Pages

  • Re: Display problems in Vista
    ... Very small overhead. ... the command packet needs to be transfered. ... have to display a line that is x pixels wide at any zoom level. ...
    (comp.graphics.api.opengl)
  • Re: Tk not displaying due to tight loop during data access
    ... After I posted the original message I realised that I hadn't searched Google ... I have since done so and found out about the command 'update'. ... > display to occur given the data access activity in the background. ...
    (comp.lang.tcl)
  • Re: Read Only / Thanks Keith.
    ... >'attrib' without any parameters will display a directory ... >The full syntax of the command follows (pasted from Help ... Used without parameters, attrib displays ... xcopy command uses archive attributes. ...
    (microsoft.public.windowsxp.general)
  • Problem linking two list boxes
    ... mode, but Access does not allow this, so I have an unbound form with two ... I want to display data in the second list box which is filtered from the ... query using the common field. ... I have a command button on the form that launches a separate modal ...
    (microsoft.public.access.formscoding)
  • Re: Need WMI script
    ... Dim strDomainName, strNodeText, strXmlBuilder ... ' Retrieve values and display. ... However, if you use the cscript host, ... you can use a command similar to below at a command prompt: ...
    (microsoft.public.windows.server.scripting)