PDA

View Full Version : viz.info message delay


jincheker
08-03-2011, 10:33 AM
Hi, everyone

I have a question. I define a function in which, a dll file was called, but before calling dll, i would like to display a message on screen.

The code structure is like this:


status_field=vizinfo.add('Ready')

def foo():
status_field.message("Dll Called")
ans = load_dll.calculate()

foo()


The problem is, the message is always displayed AFTER all calculation in dll was done. But I want message shown BEFORE load dll

Can anyone give me an idea how can I solve this problem? Thanks

Jeff
08-03-2011, 03:16 PM
You could create a small delay between the message being displayed and the dll call. Either use a timer function or place your code within a task function and use viztask.waitTime.