pyspread.*¶
pyspread¶
Main Python spreadsheet application
Run this script to start the application.
Provides
MainApplication: Initial command line operations and application launch
MainWindow: Main windows class
-
class
pyspread.MainWindow(filepath=None, default_settings=False)[source]¶ Bases:
PyQt5.QtWidgets.QMainWindowPyspread main window
- Parameters
-
_toggle_widget(widget, action_name, toggled)[source]¶ Toggles widget visibility and updates toggle actions
-
closeEvent(event=None)[source]¶ Overloaded, allows saving changes or canceling close
- Parameters
event (
Optional[QEvent]) – Any QEvent
-
eventFilter(source, event)[source]¶ Overloaded event filter for handling QDockWidget close events
Updates the menu if the macro panel is closed.
- Parameters
source (
QWidget) – Source widget of eventevent (
QEvent) – Any QEvent
- Return type
-
property
focused_grid¶ Returns grid with focus or self if none has focus
-
gui_update¶
-
on_gui_update(attributes)[source]¶ GUI update that shall be called on each cell change
- Parameters
attributes (
CellAttributes) – Attributes of current cell
-
on_preferences()[source]¶ Preferences event handler (
dialogs.PreferencesDialog)
-
on_refresh_timer()[source]¶ Event handler for self.refresh_timer.timeout
Called for periodic updates of frozen cells. Does nothing if either the entry_line or a cell editor is active.
-
on_toggle_entry_line_dock(toggled)[source]¶ Entryline toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_find_toolbar(toggled)[source]¶ Find toolbar toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_format_toolbar(toggled)[source]¶ Format toolbar toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_macro_dock(toggled)[source]¶ Macro panel toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_macro_toolbar(toggled)[source]¶ Macro toolbar toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_main_toolbar(toggled)[source]¶ Main toolbar toggle event handler
- Parameters
toggled (
bool) – Toggle state
-
on_toggle_refresh_timer(toggled)[source]¶ Toggles periodic timer for frozen cells
- Parameters
toggled (
bool) – Toggle state
pyspread