widgets.*¶
Provides
-
class
widgets.AlignmentButton(main_window)[source]¶ Bases:
widgets.MultiStateBitmapButtonAlignment button for the format toolbar
- Parameters
main_window (
QMainWindow) – Application main window
-
action_names= ('align_top', 'align_center', 'align_bottom')¶
-
label= 'Alignment'¶
-
class
widgets.BackgroundColorButton(color)[source]¶ Bases:
widgets.ColorButtonColor button with text icon
- Parameters
color (
QColor) – Color that is initially set
-
label= 'Background Color'¶
-
class
widgets.CellButton(text, grid, key)[source]¶ Bases:
PyQt5.QtWidgets.QPushButtonButton that is used for button cells in the grid
- Parameters
-
class
widgets.ColorButton(color, icon=None, max_size=PyQt5.QtCore.QSize(28, 28))[source]¶ Bases:
PyQt5.QtWidgets.QToolButtonColor button widget
- Parameters
color (
QColor) – Color that is initially seticon (
Optional[QIcon]) – Button foreground imagemax_size (
QSize) – Maximum Size of the button
-
property
color¶ Chosen color
- Return type
QColor
-
colorChanged¶
-
default_color= None¶
-
set_max_size(size)[source]¶ Set the maximum size of the widget
- Parameters
color – Maximum button size
-
title= 'Select Color'¶
-
class
widgets.FindEditor(parent)[source]¶ Bases:
PyQt5.QtWidgets.QLineEditThe Find editor widget for the find toolbar
- Parameters
parent (
QWidget) – Parent widget
-
case= False¶
Context menu event handler
- Parameters
point (
QPoint) – Context menu coordinates on screen
-
on_toggle_case(toggled)[source]¶ Find case sensitively toggle event handler
- Parameters
toggled (
bool) – case sensitivity option toggle state
-
on_toggle_regexp(toggled)[source]¶ Find with regular expression toggle event handler
- Parameters
toggled (
bool) – regular expression option toggle state
-
on_toggle_results(toggled)[source]¶ Find in results toggle event handler
- Parameters
toggled (
bool) – results option toggle state
-
on_toggle_up(toggled)[source]¶ Find upwards toggle event handler
- Parameters
toggled (
bool) – up option toggle state
-
on_toggle_word(toggled)[source]¶ Find whole word toggle event handler
- Parameters
toggled (
bool) – whole word option toggle state
-
prepend_actions(menu)[source]¶ Prepends find specific actions to menu
- Parameters
menu (
QMenu) – Find editor context menu
-
regexp= False¶
-
results= False¶
-
up= False¶
-
word= False¶
-
class
widgets.FontChoiceCombo(main_window)[source]¶ Bases:
PyQt5.QtWidgets.QFontComboBoxFont choice combo box
- Parameters
main_window (
QMainWindow) – Application main window
-
fontChanged¶
-
label= 'Font Family'¶
-
class
widgets.FontSizeCombo(main_window)[source]¶ Bases:
PyQt5.QtWidgets.QComboBoxFont choice combo box
- Parameters
main_window (
QMainWindow) – Application main window
-
fontSizeChanged¶
-
label= 'Font Size'¶
-
class
widgets.HelpBrowser(parent, path)[source]¶ Bases:
PyQt5.QtWidgets.QTextBrowserHelp browser widget
- Parameters
parent (
QWidget) – Parent windowpath (
Path) – Path to markdown file that is displayed
-
class
widgets.JustificationButton(main_window)[source]¶ Bases:
widgets.MultiStateBitmapButtonJustification button for the format toolbar
- Parameters
main_window (
QMainWindow) – Application main window
-
action_names= ('justify_left', 'justify_center', 'justify_right', 'justify_fill')¶
-
label= 'Justification'¶
-
class
widgets.LineColorButton(color)[source]¶ Bases:
widgets.ColorButtonColor button with text icon
- Parameters
color (
QColor) – Color that is initially set
-
label= 'Line Color'¶
-
class
widgets.MultiStateBitmapButton(main_window)[source]¶ Bases:
PyQt5.QtWidgets.QToolButtonQToolButton that cycles through arbitrary states
The states are defined by an iterable of QIcons
- Parameters
main_window (
QMainWindow) – Application main window
-
get_action(index)[source]¶ Returns action from index in action_names
- Parameters
index (
int) – Index of action to be returned- Return type
QAction
-
set_current_action(action_name)[source]¶ Sets current action
- Parameters
action_name (
str) – Name of action as in MainWindowActions
Sets checked status of menu
- Parameters
action_name (
str) – Name of action as in MainWindowActions
-
class
widgets.RendererButton(main_window)[source]¶ Bases:
widgets.MultiStateBitmapButtonCell render button for the format toolbar
- Parameters
main_window (
QMainWindow) – Application main window
-
action_names= ('text', 'markup', 'image', 'matplotlib')¶
-
label= 'Renderer'¶
-
class
widgets.RotationButton(main_window)[source]¶ Bases:
widgets.MultiStateBitmapButtonRotation button for the format toolbar
- Parameters
main_window (
QMainWindow) – Application main window
-
action_names= ('rotate_0', 'rotate_90', 'rotate_180', 'rotate_270')¶
-
label= 'Rotate'¶
-
class
widgets.TextColorButton(color)[source]¶ Bases:
widgets.ColorButtonColor button with text icon
- Parameters
color (
QColor) – Color that is initially set
-
label= 'Text Color'¶
pyspread