← Back to team overview

yade-users team mailing list archive

Re: [Question #697523]: When adding O.wait(), the graphical interface is black

 

Question #697523 on Yade changed:
https://answers.launchpad.net/yade/+question/697523

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

black GUI while O.wait-ing is currently expected behavior. Maybe it
could be changed (??).

I see a few scenarios how to use "GUI", depending why you want/need GUI
and O.wait at the same time.

Why you want/need GUI and O.wait at the same time?
Just "it would be nice to see the progress"?
Or "some visual condition is needed for the rest of the simulation"?
Or ... ?

a)
To use the GUI interactively, do not use O.wait() and run your script "interactively", too:
- O.run() from command line or "play button" in GUI
- "the later Python code" can be run from command line. E.g. it can be put into functions and you run only these few functions in the command line

b)
Use O.wait, but periodically save the state/some data and view the simulation in separate Yade run/in Paraview/...


> Another question, ...

Please, open another question for another question [1]

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.