ForegroundAppBackend#

class ansys.mechanical.core.embedding.rpc.server.ForegroundAppBackend(app: ansys.mechanical.core.embedding.app.App)#

Backend for the python server where mechanical uses the main thread.

Overview#

try_post

Try to post to mechanical’s main thread.

get_app

Get the app object.

Import detail#

from ansys.mechanical.core.embedding.rpc.server import ForegroundAppBackend

Method detail#

ForegroundAppBackend.try_post(callable: Callable) Any#

Try to post to mechanical’s main thread.

ForegroundAppBackend.get_app() ansys.mechanical.core.embedding.app.App#

Get the app object.