actions.*

Provides

class actions.Action(parent, label, *callbacks, icon=None, shortcut=None, statustip=None, checkable=False)[source]

Bases: PyQt5.QtWidgets.QAction

A convenience class for creating a QAction

Parameters
class actions.ChartDialogActions(parent)[source]

Bases: lib.attrdict.AttrDict

QActions for chart dialog

Reads out template files in share/templates/matplotlib and adds a QAction for each template.

Parameters

parent (QWidget) – The parent object

_add_chart_template_actions()[source]

Adds actions for chart dialog toolbar

class actions.MainWindowActions(parent, shortcuts=True)[source]

Bases: lib.attrdict.AttrDict

Holds all QActions for the main window

Parameters
  • parent (QWidget) – The parent object, normally pyspread.MainWindow

  • shortcuts (bool) – Enable shortcuts for actions

create_edit_actions()[source]

actions for Edit menu

create_file_actions()[source]

actions for File menu

create_format_actions()[source]

actions for Format menu

create_help_actions()[source]

actions for Help menu

create_macro_actions()[source]

Create actions for Macro menu

create_view_actions()[source]

actions for View menu

disable_unavailable()[source]

Disables unavailable menu items e.g. due to missing dependencies

class actions.SpellTextEditActions(parent)[source]

Bases: lib.attrdict.AttrDict

Holds QActions for SpellTextEdit

Parameters

parent (QWidget) – The parent object, normally pyspread.MainWindow