Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: time to render windows

Hi Garrett,

> I have a jython script which first generates 3 complicated windows.
> Then it goes off into a long calculation (5 minutes) and then
> generates 3 more windows.
> 
> During the long computation the first 3 windows are gray and all the
> windows get rendered at the end.
> 
> Is there some way to trigger the window display before I wait for the
> long computation?

This could just be competition for cycles. You might try
putting a small delay in your program to give the windows
time to come up. Something like:

  from visad.util import *
  . . .
  Delay(1000)
  . . .

Insert the Delay(1000) after you've created the first 3 displays.
Delay(1000) will wait for one second, adjust as needed.

Good luck,
Bill
----------------------------------------------------------
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690