widget

widget(name)

Get a widget by its name.

name can be one of: Attributes, Library, MainViewport, MainWindow, Media Viewer, Node List, Picker, Script, Settings, Tool

Return None if the widget does not exist or has not been created yet.