omni.kit.window.status_bar:
Omniverse Kit Status Bar
Status Bar supports setting the progress and the message using the message bus. It’s also possible to listen to mouse clicks.
To return to reporting Kit’s progress, it’s necessary to set negative value of progress.
Example:
import carb.events
import omni.kit.app
name_progress = carb.events.type_from_string("omni.kit.window.status_bar@progress")
name_activity = carb.events.type_from_string("omni.kit.window.status_bar@activity")
name_clicked = carb.events.type_from_string("omni.kit.window.status_bar@clicked")
message_bus = omni.kit.app.get_app().get_message_bus_event_stream()
message_bus.push(name_progress, payload={"progress": 0.5})
message_bus.push(name_activity, payload={"text": "Hello world"})
sub = message_bus.create_subscription_to_pop_by_type(name_clicked, lambda e: print("clicked"))