TreeBrowserWidget#
- class omni.kit.browser.sample.browser_widget.TreeBrowserWidget(*args, **kwargs)#
Bases:
BrowserWidgetA tree based browser widget that extends the base browser widget functionality using a tree view interface for categories and details.
This class leverages a category delegate to manage how category items are displayed and refreshed, and supports additional UI styling to customize the tree appearance. When a category item is updated, it refreshes the corresponding category view and, if the item is selected, triggers a detail view update.
- Parameters:
args (tuple) – Variable positional arguments for initializing the widget.
- Keyword Arguments:
category_delegate (TreeCategoryDelegate, optional) – Delegate used for managing category display. Defaults to a new TreeCategoryDelegate instance.
show_collection (bool, optional) – Flag to control the visibility of the collection view. Defaults to False.
style (dict, optional) – Additional style parameters to update the default tree UI styles.
Methods
__init__(*args, **kwargs)Attributes
- __init__(*args, **kwargs)#