toolbar.*

Provides

class toolbar.ChartTemplatesToolBar(parent)[source]

Bases: 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

tooltip_tpl = 'Package {} required but not installed'
class toolbar.FindToolbar(main_window)[source]

Bases: 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: 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: 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: 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.RChartTemplatesToolBar(parent)[source]

Bases: ToolBarBase

Toolbar for chart dialog for inserting R template chart code

Requires rpy2 with ggplot, lattice and graphics packages

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

static is_r_package_installed(package_name)[source]

True if the R package is installed

Parameters:

package_name – Name of R package to checked

tooltip_tpl = 'R Package {} required but not installed'
class toolbar.ToolBarBase[source]

Bases: 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=ToolButtonPopupMode.MenuButtonPopup)[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