spyder.api.widgets.auxiliary_widgets#

Spyder API auxiliary widgets.

Classes

MainCornerWidget(parent, name)

Corner widget to hold options menu, spinner and additional options.

SpyderWindowWidget(widget)

MainWindow subclass that contains a SpyderDockablePlugin.

class spyder.api.widgets.auxiliary_widgets.SpyderWindowWidget(widget)[source]#

Bases: QMainWindow, SpyderMainWindowMixin

MainWindow subclass that contains a SpyderDockablePlugin.

sig_closed#

This signal is emitted when the close event is fired.

sig_window_state_changed#

This signal is emitted when the window state has changed (for instance, between maximized and minimized states).

Parameters:

window_state (Qt.WindowStates) – The window state.

closeEvent(event)[source]#

Override Qt method to emit a custom sig_close signal.

changeEvent(event)[source]#

Override Qt method to emit a custom sig_windowstate_changed signal when there’s a change in the window state.

class spyder.api.widgets.auxiliary_widgets.MainCornerWidget(parent, name)[source]#

Bases: QToolBar

Corner widget to hold options menu, spinner and additional options.

add_widget(widget, before=None)[source]#

Add a widget to the left of the last widget added to the corner.

get_widget(widget_id)[source]#

Return a widget by unique id.

get_action(widget_id)[source]#

Return action corresponding to widget_id.