Skip to content

Taipy.gui.invoke callback

Invoke a user callback in a given state.

See the User Manual section on Long Running Callbacks in a Thread for details on when and how this function can be used.

Parameters:

Name Type Description Default
gui Gui

The current gui instance.

required
state_id str

The identifier of the state to use, as returned by get_state_id().

required
callback Callable[[State, ...], None]

The user-defined function that is invoked.
The first parameter of this function must be a State.

required
args Union[Tuple, List]

The remaining arguments, as a List or a Tuple.

required