ui.root.insert

Inserts a widget into to the root panel at the specified index.

Returns the root panel.

UsageReturns
ui.root.insert(index, widget)ui.Panel
ArgumentTypeDetails
indexNumber

The index at which to insert the widget.

widgetui.Widget

The widget to insert.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!