ExtSourceSelector
- class omni.kit.window.extensions.ext_components.ExtSourceSelector(on_selected_fn)
Bases:
object
A class for selecting an extension source.
Handles UI logic for selecting an extension source from a list of options.
- Parameters
on_selected_fn (Callable) – Callback function invoked when a source is selected.
Methods
__init__
(on_selected_fn)Initializes the ExtSourceSelector with a callback for selection events.
set_badge_number
(source, number)Sets the badge number for a given extension source.
set_tab
(source)Activates the tab corresponding to the given source.
- __init__(on_selected_fn)
Initializes the ExtSourceSelector with a callback for selection events.
- set_badge_number(source, number)
Sets the badge number for a given extension source.
- Parameters
source (
ExtSource
) – The source for which to set the badge number.number (int) – The number to display on the badge.
- set_tab(source)
Activates the tab corresponding to the given source.
- Parameters
source (
ExtSource
) – The source for which to activate the tab.