actions.*¶
Provides
Action
is a quick one liner way to create QAction
- class actions.Action(parent, label, *callbacks, icon=None, shortcut=None, statustip=None, checkable=False, role=None)[source]¶
Bases:
QAction
A convenience class for creating a QAction
- Parameters:
parent (
QWidget
) – The parent object, normallypyspread.MainWindow
label (
str
) – The text to appearicon (
QIcon
) – theicons.Icon
shortcut (
str
) – The magic kestrokes if antstatustip (
str
) – The popup messagecheckable (
bool
) – Has a checkboxrole (
MenuRole
) – Menu role for action for macOS
- class actions.ChartDialogActions(parent)[source]¶
Bases:
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
- class actions.MainWindowActions(parent, shortcuts=True)[source]¶
Bases:
AttrDict
Holds all QActions for the main window
- Parameters:
parent (
QWidget
) – The parent object, normallypyspread.MainWindow
shortcuts (
bool
) – Enable shortcuts for actions
Disables unavailable menu items e.g. due to missing dependencies