spyder.api.widgets.toolbars#
Spyder API toolbar widgets.
Classes
|
Spyder Main application Toolbar. |
|
Spyder Widget toolbar class. |
|
Spyder Toolbar. |
Filter tool tip events on toolbuttons. |
|
|
|
- class spyder.api.widgets.toolbars.ToolTipFilter[source]#
Bases:
QObjectFilter tool tip events on toolbuttons.
- class spyder.api.widgets.toolbars.ToolbarStyle[source]#
Bases:
QProxyStyle
- class spyder.api.widgets.toolbars.SpyderToolbar(parent, title)[source]#
Bases:
QToolBarSpyder Toolbar.
This class provides toolbars with some predefined functionality.
- sig_is_rendered#
This signal is emitted to let other objects know that the toolbar is now rendered.
- add_item(action_or_widget: SpyderAction | QWidget, section: str | None = None, before: str | None = None, before_section: str | None = None, omit_id: bool = False)[source]#
Add action or widget item to given toolbar section.
- Parameters:
item (SpyderAction or QWidget) – The item to add to the toolbar.
toolbar_id (str or None) – The application toolbar unique string identifier.
section (str or None) – The section id in which to insert the item on the toolbar.
before (str or None) – Make the item appear before another given item.
before_section (str or None) – Make the item defined section appear before another given section (must be already defined).
omit_id (bool) – If True, then the toolbar will check if the item to add declares an id, False otherwise. This flag exists only for items added on Spyder 4 plugins. Default: False
- class spyder.api.widgets.toolbars.ApplicationToolbar(parent, toolbar_id, title)[source]#
Bases:
SpyderToolbarSpyder Main application Toolbar.
- ID = None#
Unique string toolbar identifier.
This is used by Qt to be able to save and restore the state of widgets.
- class spyder.api.widgets.toolbars.MainWidgetToolbar(parent=None, title=None)[source]#
Bases:
SpyderToolbarSpyder Widget toolbar class.
A toolbar used in Spyder dockable plugins to add internal toolbars to their interface.
- ID = None#
Unique string toolbar identifier.