broadcast_callback() function

Invoke a callback for every client.

Calling this function is equivalent to calling the method gui.broadcast_callback(callback, args).

Parameters:

Name Type Description Default
gui Gui

The current Gui instance.

required
callback Callable

The user-defined function to be invoked.
The first parameter of this function must be a State object representing the client for which it is invoked.
The other parameters should reflect the ones provided in the args collection.

required
args Optional[Sequence[Any]]

The parameters to send to callback, if any.

None