WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   viz.info message delay (https://forum.worldviz.com/showthread.php?t=3862)

jincheker 08-03-2011 10:33 AM

viz.info message delay
 
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:

Code:

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.


All times are GMT -7. The time now is 06:03 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC