toolbar.*

Provides

class toolbar.ChartTemplatesToolBar(parent)[source]

Bases: toolbar.ToolBarBase

Toolbar for chart dialog for inserting template chart code

Parameters

parent (QWidget) – Parent widget, e.g. chart dialog window

_create_toolbar(actions)[source]

Fills the chart dialog toolbar with QActions

Parameters

actions (ChartDialogActions) – Chart dialog actions

class toolbar.FindToolbar(main_window)[source]

Bases: toolbar.ToolBarBase

The find toolbar for pyspread

Parameters

main_window (QMainWindow) – Application main window

_create_toolbar(actions)[source]

Fills the find toolbar with QActions

Parameters

actions (MainWindowActions) – Main window actions

class toolbar.FormatToolbar(main_window)[source]

Bases: toolbar.ToolBarBase

The format toolbar for pyspread

Parameters

main_window (QMainWindow) – Application main window

_create_toolbar(actions)[source]

Fills the format toolbar with QActions

Parameters

actions (MainWindowActions) – Main window actions

class toolbar.MacroToolbar(main_window)[source]

Bases: toolbar.ToolBarBase

The macro toolbar for pyspread

Parameters

main_window (QMainWindow) – Application main window

_create_toolbar(actions)[source]

Fills the macro toolbar with QActions

Parameters

actions (MainWindowActions) – Main window actions

class toolbar.MainToolBar(main_window)[source]

Bases: toolbar.ToolBarBase

The main toolbar

Parameters

main_window (QMainWindow) – Application main window

_create_toolbar(actions)[source]

Fills the main toolbar with QActions

Parameters

actions (MainWindowActions) – Main window actions

class toolbar.ToolBarBase[source]

Bases: PyQt5.QtWidgets.QToolBar

Base toolbar class that provides toolbar manager button method

add_widget(widget)[source]

Adds widget with addWidget and assigns action text and icon

The widget must have a label attribute and an icon method.

Parameters

widget (QWidget) – Widget to be added

get_manager_button()[source]

Returns QToolButton for managing the toolbar

Return type

QToolButton

toolbar.add_toolbutton_widget(button, widget, minsize=(300, 200), popup_mode=1)[source]

Adds a widget as menu to a tool_button

Parameters
  • button (QWidget) – Tool button for menu

  • widget (QWidget) – Toolbar widget

  • minsize (Tuple[int, int]) – Minimum menu size

  • popup_mode (ToolButtonPopupMode) – Describes how the menu is popped up