MainWindow

class omni.ui.MainWindow

Bases: pybind11_object

The MainWindow class represents Main Window for the Application, draw optional MainMenuBar and StatusBar.

Methods

__init__(self[, show_foreground])

Construct the main window, add it to the underlying windowing system, and makes it appear.

Attributes

cpp_status_bar_enabled

Workaround to reserve space for C++ status bar.

main_frame

This represents Styling opportunity for the Window background.

main_menu_bar

The main MenuBar for the application.

show_foreground

When show_foreground is True, MainWindow prevents other windows from showing.

status_bar_frame

The StatusBar Frame is empty by default and is meant to be filled by other part of the system.

__init__(self: omni.ui._ui.MainWindow, show_foreground: bool = False, **kwargs) None

Construct the main window, add it to the underlying windowing system, and makes it appear.

`kwargsdict`

See below

### Keyword Arguments:

property cpp_status_bar_enabled

Workaround to reserve space for C++ status bar.

property main_frame

This represents Styling opportunity for the Window background.

property main_menu_bar

The main MenuBar for the application.

property show_foreground

When show_foreground is True, MainWindow prevents other windows from showing.

property status_bar_frame

The StatusBar Frame is empty by default and is meant to be filled by other part of the system.