MenuHelperWindow
- class omni.kit.menu.utils.scripts.utils.MenuHelperWindow(*args, **kwargs)
Bases:
Window
Methods
__init__
(self, title, dockPreference, **kwargs)Construct the window, add it to the underlying windowing system, and makes it appear.
destroy
(self)Removes all the callbacks and circular references.
set_visibility_changed_listener
(listener)Attributes
- __init__(self: omni.ui._ui.Window, title: str, dockPreference: omni.ui._ui.DockPreference = <DockPreference.DISABLED: 0>, **kwargs) → None
Construct the window, add it to the underlying windowing system, and makes it appear.
### Arguments:
- `title :`
The window title. It’s also used as an internal window ID.
- `dockPrefence :`
In the old Kit determines where the window should be docked. In Kit Next it’s unused.
- `kwargsdict`
See below
### Keyword Arguments:
- `flags`
This property set the Flags for the Window.
- `visible`
This property holds whether the window is visible.
- `title`
This property holds the window’s title.
- `padding_x`
This property set the padding to the frame on the X axis.
- `padding_y`
This property set the padding to the frame on the Y axis.
- `width`
This property holds the window Width.
- `height`
This property holds the window Height.
- `position_x`
This property set/get the position of the window in the X Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.
- `position_y`
This property set/get the position of the window in the Y Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.
- `auto_resize`
setup the window to resize automatically based on its content
- `noTabBar`
setup the visibility of the TabBar Handle, this is the small triangle at the corner of the view If it is not shown then it is not possible to undock that window and it need to be closed/moved programatically
- `tabBarTooltip`
This property sets the tooltip when hovering over window’s tabbar.
- `raster_policy`
Determine how the content of the window should be rastered.
- `width_changed_fn`
This property holds the window Width.
- `height_changed_fn`
This property holds the window Height.
- `visibility_changed_fn`
This property holds whether the window is visible.
- destroy(self: omni.ui._ui.Window) → None
Removes all the callbacks and circular references.