id
int32
0
252k
repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
236,700
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellFontBold
def OnCellFontBold(self, event): """Cell font bold event handler""" with undo.group(_("Bold")): try: try: weight = getattr(wx, event.weight[2:]) except AttributeError: msg = _("Weight {weight} unknown").format( ...
python
def OnCellFontBold(self, event): """Cell font bold event handler""" with undo.group(_("Bold")): try: try: weight = getattr(wx, event.weight[2:]) except AttributeError: msg = _("Weight {weight} unknown").format( ...
[ "def", "OnCellFontBold", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Bold\"", ")", ")", ":", "try", ":", "try", ":", "weight", "=", "getattr", "(", "wx", ",", "event", ".", "weight", "[", "2", ":", "]", ...
Cell font bold event handler
[ "Cell", "font", "bold", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L619-L641
236,701
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellFontUnderline
def OnCellFontUnderline(self, event): """Cell font underline event handler""" with undo.group(_("Underline")): self.grid.actions.toggle_attr("underline") self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
python
def OnCellFontUnderline(self, event): """Cell font underline event handler""" with undo.group(_("Underline")): self.grid.actions.toggle_attr("underline") self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
[ "def", "OnCellFontUnderline", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Underline\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "toggle_attr", "(", "\"underline\"", ")", "self", ".", "grid", "."...
Cell font underline event handler
[ "Cell", "font", "underline", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L666-L676
236,702
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellFrozen
def OnCellFrozen(self, event): """Cell frozen event handler""" with undo.group(_("Frozen")): self.grid.actions.change_frozen_attr() self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
python
def OnCellFrozen(self, event): """Cell frozen event handler""" with undo.group(_("Frozen")): self.grid.actions.change_frozen_attr() self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
[ "def", "OnCellFrozen", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Frozen\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "change_frozen_attr", "(", ")", "self", ".", "grid", ".", "ForceRefresh", ...
Cell frozen event handler
[ "Cell", "frozen", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L690-L700
236,703
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnButtonCell
def OnButtonCell(self, event): """Button cell event handler""" # The button text text = event.text with undo.group(_("Button")): self.grid.actions.set_attr("button_cell", text) self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Sk...
python
def OnButtonCell(self, event): """Button cell event handler""" # The button text text = event.text with undo.group(_("Button")): self.grid.actions.set_attr("button_cell", text) self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Sk...
[ "def", "OnButtonCell", "(", "self", ",", "event", ")", ":", "# The button text", "text", "=", "event", ".", "text", "with", "undo", ".", "group", "(", "_", "(", "\"Button\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "set_attr", "(", "...
Button cell event handler
[ "Button", "cell", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L714-L727
236,704
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnMerge
def OnMerge(self, event): """Merge cells event handler""" with undo.group(_("Merge cells")): self.grid.actions.merge_selected_cells(self.grid.selection) self.grid.ForceRefresh() self.grid.update_attribute_toolbar()
python
def OnMerge(self, event): """Merge cells event handler""" with undo.group(_("Merge cells")): self.grid.actions.merge_selected_cells(self.grid.selection) self.grid.ForceRefresh() self.grid.update_attribute_toolbar()
[ "def", "OnMerge", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Merge cells\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "merge_selected_cells", "(", "self", ".", "grid", ".", "selection", ")", "...
Merge cells event handler
[ "Merge", "cells", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L741-L749
236,705
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellBorderWidth
def OnCellBorderWidth(self, event): """Cell border width event handler""" with undo.group(_("Border width")): self.grid.actions.set_border_attr("borderwidth", event.width, event.borders) self.grid.ForceRefresh() self.grid.updat...
python
def OnCellBorderWidth(self, event): """Cell border width event handler""" with undo.group(_("Border width")): self.grid.actions.set_border_attr("borderwidth", event.width, event.borders) self.grid.ForceRefresh() self.grid.updat...
[ "def", "OnCellBorderWidth", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Border width\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "set_border_attr", "(", "\"borderwidth\"", ",", "event", ".", "widt...
Cell border width event handler
[ "Cell", "border", "width", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L775-L786
236,706
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellBorderColor
def OnCellBorderColor(self, event): """Cell border color event handler""" with undo.group(_("Border color")): self.grid.actions.set_border_attr("bordercolor", event.color, event.borders) self.grid.ForceRefresh() self.grid.updat...
python
def OnCellBorderColor(self, event): """Cell border color event handler""" with undo.group(_("Border color")): self.grid.actions.set_border_attr("bordercolor", event.color, event.borders) self.grid.ForceRefresh() self.grid.updat...
[ "def", "OnCellBorderColor", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Border color\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "set_border_attr", "(", "\"bordercolor\"", ",", "event", ".", "colo...
Cell border color event handler
[ "Cell", "border", "color", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L788-L799
236,707
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellBackgroundColor
def OnCellBackgroundColor(self, event): """Cell background color event handler""" with undo.group(_("Background color")): self.grid.actions.set_attr("bgcolor", event.color) self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
python
def OnCellBackgroundColor(self, event): """Cell background color event handler""" with undo.group(_("Background color")): self.grid.actions.set_attr("bgcolor", event.color) self.grid.ForceRefresh() self.grid.update_attribute_toolbar() event.Skip()
[ "def", "OnCellBackgroundColor", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Background color\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "set_attr", "(", "\"bgcolor\"", ",", "event", ".", "color",...
Cell background color event handler
[ "Cell", "background", "color", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L801-L811
236,708
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellTextRotation
def OnCellTextRotation(self, event): """Cell text rotation event handler""" with undo.group(_("Rotation")): self.grid.actions.toggle_attr("angle") self.grid.ForceRefresh() self.grid.update_attribute_toolbar() if is_gtk(): try: wx.Yield(...
python
def OnCellTextRotation(self, event): """Cell text rotation event handler""" with undo.group(_("Rotation")): self.grid.actions.toggle_attr("angle") self.grid.ForceRefresh() self.grid.update_attribute_toolbar() if is_gtk(): try: wx.Yield(...
[ "def", "OnCellTextRotation", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Rotation\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "toggle_attr", "(", "\"angle\"", ")", "self", ".", "grid", ".", "F...
Cell text rotation event handler
[ "Cell", "text", "rotation", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L865-L881
236,709
manns/pyspread
pyspread/src/gui/_grid.py
GridCellEventHandlers.OnCellSelected
def OnCellSelected(self, event): """Cell selection event handler""" key = row, col, tab = event.Row, event.Col, self.grid.current_table # Is the cell merged then go to merging cell cell_attributes = self.grid.code_array.cell_attributes merging_cell = cell_attributes.get_merging...
python
def OnCellSelected(self, event): """Cell selection event handler""" key = row, col, tab = event.Row, event.Col, self.grid.current_table # Is the cell merged then go to merging cell cell_attributes = self.grid.code_array.cell_attributes merging_cell = cell_attributes.get_merging...
[ "def", "OnCellSelected", "(", "self", ",", "event", ")", ":", "key", "=", "row", ",", "col", ",", "tab", "=", "event", ".", "Row", ",", "event", ".", "Col", ",", "self", ".", "grid", ".", "current_table", "# Is the cell merged then go to merging cell", "ce...
Cell selection event handler
[ "Cell", "selection", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L883-L922
236,710
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnMouseMotion
def OnMouseMotion(self, event): """Mouse motion event handler""" grid = self.grid pos_x, pos_y = grid.CalcUnscrolledPosition(event.GetPosition()) row = grid.YToRow(pos_y) col = grid.XToCol(pos_x) tab = grid.current_table key = row, col, tab merge_area...
python
def OnMouseMotion(self, event): """Mouse motion event handler""" grid = self.grid pos_x, pos_y = grid.CalcUnscrolledPosition(event.GetPosition()) row = grid.YToRow(pos_y) col = grid.XToCol(pos_x) tab = grid.current_table key = row, col, tab merge_area...
[ "def", "OnMouseMotion", "(", "self", ",", "event", ")", ":", "grid", "=", "self", ".", "grid", "pos_x", ",", "pos_y", "=", "grid", ".", "CalcUnscrolledPosition", "(", "event", ".", "GetPosition", "(", ")", ")", "row", "=", "grid", ".", "YToRow", "(", ...
Mouse motion event handler
[ "Mouse", "motion", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L933-L953
236,711
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnKey
def OnKey(self, event): """Handles non-standard shortcut events""" def switch_to_next_table(): newtable = self.grid.current_table + 1 post_command_event(self.grid, self.GridActionTableSwitchMsg, newtable=newtable) def switch_to_previous_ta...
python
def OnKey(self, event): """Handles non-standard shortcut events""" def switch_to_next_table(): newtable = self.grid.current_table + 1 post_command_event(self.grid, self.GridActionTableSwitchMsg, newtable=newtable) def switch_to_previous_ta...
[ "def", "OnKey", "(", "self", ",", "event", ")", ":", "def", "switch_to_next_table", "(", ")", ":", "newtable", "=", "self", ".", "grid", ".", "current_table", "+", "1", "post_command_event", "(", "self", ".", "grid", ",", "self", ".", "GridActionTableSwitc...
Handles non-standard shortcut events
[ "Handles", "non", "-", "standard", "shortcut", "events" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L955-L1014
236,712
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnRangeSelected
def OnRangeSelected(self, event): """Event handler for grid selection""" # If grid editing is disabled then pyspread is in selection mode if not self.grid.IsEditable(): selection = self.grid.selection row, col, __ = self.grid.sel_mode_cursor if (row, col) in ...
python
def OnRangeSelected(self, event): """Event handler for grid selection""" # If grid editing is disabled then pyspread is in selection mode if not self.grid.IsEditable(): selection = self.grid.selection row, col, __ = self.grid.sel_mode_cursor if (row, col) in ...
[ "def", "OnRangeSelected", "(", "self", ",", "event", ")", ":", "# If grid editing is disabled then pyspread is in selection mode", "if", "not", "self", ".", "grid", ".", "IsEditable", "(", ")", ":", "selection", "=", "self", ".", "grid", ".", "selection", "row", ...
Event handler for grid selection
[ "Event", "handler", "for", "grid", "selection" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1016-L1028
236,713
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnViewFrozen
def OnViewFrozen(self, event): """Show cells as frozen status""" self.grid._view_frozen = not self.grid._view_frozen self.grid.grid_renderer.cell_cache.clear() self.grid.ForceRefresh() event.Skip()
python
def OnViewFrozen(self, event): """Show cells as frozen status""" self.grid._view_frozen = not self.grid._view_frozen self.grid.grid_renderer.cell_cache.clear() self.grid.ForceRefresh() event.Skip()
[ "def", "OnViewFrozen", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "_view_frozen", "=", "not", "self", ".", "grid", ".", "_view_frozen", "self", ".", "grid", ".", "grid_renderer", ".", "cell_cache", ".", "clear", "(", ")", "self", "....
Show cells as frozen status
[ "Show", "cells", "as", "frozen", "status" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1032-L1040
236,714
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnGoToCell
def OnGoToCell(self, event): """Shift a given cell into view""" row, col, tab = event.key try: self.grid.actions.cursor = row, col, tab except ValueError: msg = _("Cell {key} outside grid shape {shape}").format( key=event.key, shape=self.grid.co...
python
def OnGoToCell(self, event): """Shift a given cell into view""" row, col, tab = event.key try: self.grid.actions.cursor = row, col, tab except ValueError: msg = _("Cell {key} outside grid shape {shape}").format( key=event.key, shape=self.grid.co...
[ "def", "OnGoToCell", "(", "self", ",", "event", ")", ":", "row", ",", "col", ",", "tab", "=", "event", ".", "key", "try", ":", "self", ".", "grid", ".", "actions", ".", "cursor", "=", "row", ",", "col", ",", "tab", "except", "ValueError", ":", "m...
Shift a given cell into view
[ "Shift", "a", "given", "cell", "into", "view" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1049-L1068
236,715
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnEnterSelectionMode
def OnEnterSelectionMode(self, event): """Event handler for entering selection mode, disables cell edits""" self.grid.sel_mode_cursor = list(self.grid.actions.cursor) self.grid.EnableDragGridSize(False) self.grid.EnableEditing(False)
python
def OnEnterSelectionMode(self, event): """Event handler for entering selection mode, disables cell edits""" self.grid.sel_mode_cursor = list(self.grid.actions.cursor) self.grid.EnableDragGridSize(False) self.grid.EnableEditing(False)
[ "def", "OnEnterSelectionMode", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "sel_mode_cursor", "=", "list", "(", "self", ".", "grid", ".", "actions", ".", "cursor", ")", "self", ".", "grid", ".", "EnableDragGridSize", "(", "False", ")",...
Event handler for entering selection mode, disables cell edits
[ "Event", "handler", "for", "entering", "selection", "mode", "disables", "cell", "edits" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1070-L1075
236,716
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnExitSelectionMode
def OnExitSelectionMode(self, event): """Event handler for leaving selection mode, enables cell edits""" self.grid.sel_mode_cursor = None self.grid.EnableDragGridSize(True) self.grid.EnableEditing(True)
python
def OnExitSelectionMode(self, event): """Event handler for leaving selection mode, enables cell edits""" self.grid.sel_mode_cursor = None self.grid.EnableDragGridSize(True) self.grid.EnableEditing(True)
[ "def", "OnExitSelectionMode", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "sel_mode_cursor", "=", "None", "self", ".", "grid", ".", "EnableDragGridSize", "(", "True", ")", "self", ".", "grid", ".", "EnableEditing", "(", "True", ")" ]
Event handler for leaving selection mode, enables cell edits
[ "Event", "handler", "for", "leaving", "selection", "mode", "enables", "cell", "edits" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1077-L1082
236,717
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnRefreshSelectedCells
def OnRefreshSelectedCells(self, event): """Event handler for refreshing the selected cells via menu""" self.grid.actions.refresh_selected_frozen_cells() self.grid.ForceRefresh() event.Skip()
python
def OnRefreshSelectedCells(self, event): """Event handler for refreshing the selected cells via menu""" self.grid.actions.refresh_selected_frozen_cells() self.grid.ForceRefresh() event.Skip()
[ "def", "OnRefreshSelectedCells", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "actions", ".", "refresh_selected_frozen_cells", "(", ")", "self", ".", "grid", ".", "ForceRefresh", "(", ")", "event", ".", "Skip", "(", ")" ]
Event handler for refreshing the selected cells via menu
[ "Event", "handler", "for", "refreshing", "the", "selected", "cells", "via", "menu" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1084-L1090
236,718
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnTimerToggle
def OnTimerToggle(self, event): """Toggles the timer for updating frozen cells""" if self.grid.timer_running: # Stop timer self.grid.timer_running = False self.grid.timer.Stop() del self.grid.timer else: # Start timer self...
python
def OnTimerToggle(self, event): """Toggles the timer for updating frozen cells""" if self.grid.timer_running: # Stop timer self.grid.timer_running = False self.grid.timer.Stop() del self.grid.timer else: # Start timer self...
[ "def", "OnTimerToggle", "(", "self", ",", "event", ")", ":", "if", "self", ".", "grid", ".", "timer_running", ":", "# Stop timer", "self", ".", "grid", ".", "timer_running", "=", "False", "self", ".", "grid", ".", "timer", ".", "Stop", "(", ")", "del",...
Toggles the timer for updating frozen cells
[ "Toggles", "the", "timer", "for", "updating", "frozen", "cells" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1092-L1105
236,719
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnTimer
def OnTimer(self, event): """Update all frozen cells because of timer call""" self.timer_updating = True shape = self.grid.code_array.shape[:2] selection = Selection([(0, 0)], [(shape)], [], [], []) self.grid.actions.refresh_selected_frozen_cells(selection) self.grid.Fo...
python
def OnTimer(self, event): """Update all frozen cells because of timer call""" self.timer_updating = True shape = self.grid.code_array.shape[:2] selection = Selection([(0, 0)], [(shape)], [], [], []) self.grid.actions.refresh_selected_frozen_cells(selection) self.grid.Fo...
[ "def", "OnTimer", "(", "self", ",", "event", ")", ":", "self", ".", "timer_updating", "=", "True", "shape", "=", "self", ".", "grid", ".", "code_array", ".", "shape", "[", ":", "2", "]", "selection", "=", "Selection", "(", "[", "(", "0", ",", "0", ...
Update all frozen cells because of timer call
[ "Update", "all", "frozen", "cells", "because", "of", "timer", "call" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1107-L1115
236,720
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnZoomStandard
def OnZoomStandard(self, event): """Event handler for resetting grid zoom""" self.grid.actions.zoom(zoom=1.0) event.Skip()
python
def OnZoomStandard(self, event): """Event handler for resetting grid zoom""" self.grid.actions.zoom(zoom=1.0) event.Skip()
[ "def", "OnZoomStandard", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "actions", ".", "zoom", "(", "zoom", "=", "1.0", ")", "event", ".", "Skip", "(", ")" ]
Event handler for resetting grid zoom
[ "Event", "handler", "for", "resetting", "grid", "zoom" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1131-L1136
236,721
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnContextMenu
def OnContextMenu(self, event): """Context menu event handler""" self.grid.PopupMenu(self.grid.contextmenu) event.Skip()
python
def OnContextMenu(self, event): """Context menu event handler""" self.grid.PopupMenu(self.grid.contextmenu) event.Skip()
[ "def", "OnContextMenu", "(", "self", ",", "event", ")", ":", "self", ".", "grid", ".", "PopupMenu", "(", "self", ".", "grid", ".", "contextmenu", ")", "event", ".", "Skip", "(", ")" ]
Context menu event handler
[ "Context", "menu", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1145-L1150
236,722
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnMouseWheel
def OnMouseWheel(self, event): """Event handler for mouse wheel actions Invokes zoom when mouse when Ctrl is also pressed """ if event.ControlDown(): if event.WheelRotation > 0: post_command_event(self.grid, self.grid.ZoomInMsg) else: ...
python
def OnMouseWheel(self, event): """Event handler for mouse wheel actions Invokes zoom when mouse when Ctrl is also pressed """ if event.ControlDown(): if event.WheelRotation > 0: post_command_event(self.grid, self.grid.ZoomInMsg) else: ...
[ "def", "OnMouseWheel", "(", "self", ",", "event", ")", ":", "if", "event", ".", "ControlDown", "(", ")", ":", "if", "event", ".", "WheelRotation", ">", "0", ":", "post_command_event", "(", "self", ".", "grid", ",", "self", ".", "grid", ".", "ZoomInMsg"...
Event handler for mouse wheel actions Invokes zoom when mouse when Ctrl is also pressed
[ "Event", "handler", "for", "mouse", "wheel", "actions" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1152-L1184
236,723
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnFind
def OnFind(self, event): """Find functionality, called from toolbar, returns find position""" # Search starts in next cell after the current one gridpos = list(self.grid.actions.cursor) text, flags = event.text, event.flags findpos = self.grid.actions.find(gridpos, text, flags) ...
python
def OnFind(self, event): """Find functionality, called from toolbar, returns find position""" # Search starts in next cell after the current one gridpos = list(self.grid.actions.cursor) text, flags = event.text, event.flags findpos = self.grid.actions.find(gridpos, text, flags) ...
[ "def", "OnFind", "(", "self", ",", "event", ")", ":", "# Search starts in next cell after the current one", "gridpos", "=", "list", "(", "self", ".", "grid", ".", "actions", ".", "cursor", ")", "text", ",", "flags", "=", "event", ".", "text", ",", "event", ...
Find functionality, called from toolbar, returns find position
[ "Find", "functionality", "called", "from", "toolbar", "returns", "find", "position" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1188-L1212
236,724
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnShowFindReplace
def OnShowFindReplace(self, event): """Calls the find-replace dialog""" data = wx.FindReplaceData(wx.FR_DOWN) dlg = wx.FindReplaceDialog(self.grid, data, "Find & Replace", wx.FR_REPLACEDIALOG) dlg.data = data # save a reference to data dlg.Sho...
python
def OnShowFindReplace(self, event): """Calls the find-replace dialog""" data = wx.FindReplaceData(wx.FR_DOWN) dlg = wx.FindReplaceDialog(self.grid, data, "Find & Replace", wx.FR_REPLACEDIALOG) dlg.data = data # save a reference to data dlg.Sho...
[ "def", "OnShowFindReplace", "(", "self", ",", "event", ")", ":", "data", "=", "wx", ".", "FindReplaceData", "(", "wx", ".", "FR_DOWN", ")", "dlg", "=", "wx", ".", "FindReplaceDialog", "(", "self", ".", "grid", ",", "data", ",", "\"Find & Replace\"", ",",...
Calls the find-replace dialog
[ "Calls", "the", "find", "-", "replace", "dialog" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1214-L1221
236,725
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnReplaceFind
def OnReplaceFind(self, event): """Called when a find operation is started from F&R dialog""" event.text = event.GetFindString() event.flags = self._wxflag2flag(event.GetFlags()) self.OnFind(event)
python
def OnReplaceFind(self, event): """Called when a find operation is started from F&R dialog""" event.text = event.GetFindString() event.flags = self._wxflag2flag(event.GetFlags()) self.OnFind(event)
[ "def", "OnReplaceFind", "(", "self", ",", "event", ")", ":", "event", ".", "text", "=", "event", ".", "GetFindString", "(", ")", "event", ".", "flags", "=", "self", ".", "_wxflag2flag", "(", "event", ".", "GetFlags", "(", ")", ")", "self", ".", "OnFi...
Called when a find operation is started from F&R dialog
[ "Called", "when", "a", "find", "operation", "is", "started", "from", "F&R", "dialog" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1239-L1245
236,726
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnReplace
def OnReplace(self, event): """Called when a replace operation is started, returns find position""" find_string = event.GetFindString() flags = self._wxflag2flag(event.GetFlags()) replace_string = event.GetReplaceString() gridpos = list(self.grid.actions.cursor) findpo...
python
def OnReplace(self, event): """Called when a replace operation is started, returns find position""" find_string = event.GetFindString() flags = self._wxflag2flag(event.GetFlags()) replace_string = event.GetReplaceString() gridpos = list(self.grid.actions.cursor) findpo...
[ "def", "OnReplace", "(", "self", ",", "event", ")", ":", "find_string", "=", "event", ".", "GetFindString", "(", ")", "flags", "=", "self", ".", "_wxflag2flag", "(", "event", ".", "GetFlags", "(", ")", ")", "replace_string", "=", "event", ".", "GetReplac...
Called when a replace operation is started, returns find position
[ "Called", "when", "a", "replace", "operation", "is", "started", "returns", "find", "position" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1247-L1278
236,727
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnReplaceAll
def OnReplaceAll(self, event): """Called when a replace all operation is started""" find_string = event.GetFindString() flags = self._wxflag2flag(event.GetFlags()) replace_string = event.GetReplaceString() findpositions = self.grid.actions.find_all(find_string, flags) ...
python
def OnReplaceAll(self, event): """Called when a replace all operation is started""" find_string = event.GetFindString() flags = self._wxflag2flag(event.GetFlags()) replace_string = event.GetReplaceString() findpositions = self.grid.actions.find_all(find_string, flags) ...
[ "def", "OnReplaceAll", "(", "self", ",", "event", ")", ":", "find_string", "=", "event", ".", "GetFindString", "(", ")", "flags", "=", "self", ".", "_wxflag2flag", "(", "event", ".", "GetFlags", "(", ")", ")", "replace_string", "=", "event", ".", "GetRep...
Called when a replace all operation is started
[ "Called", "when", "a", "replace", "all", "operation", "is", "started" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1280-L1293
236,728
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers._get_no_rowscols
def _get_no_rowscols(self, bbox): """Returns tuple of number of rows and cols from bbox""" if bbox is None: return 1, 1 else: (bb_top, bb_left), (bb_bottom, bb_right) = bbox if bb_top is None: bb_top = 0 if bb_left is None: ...
python
def _get_no_rowscols(self, bbox): """Returns tuple of number of rows and cols from bbox""" if bbox is None: return 1, 1 else: (bb_top, bb_left), (bb_bottom, bb_right) = bbox if bb_top is None: bb_top = 0 if bb_left is None: ...
[ "def", "_get_no_rowscols", "(", "self", ",", "bbox", ")", ":", "if", "bbox", "is", "None", ":", "return", "1", ",", "1", "else", ":", "(", "bb_top", ",", "bb_left", ")", ",", "(", "bb_bottom", ",", "bb_right", ")", "=", "bbox", "if", "bb_top", "is"...
Returns tuple of number of rows and cols from bbox
[ "Returns", "tuple", "of", "number", "of", "rows", "and", "cols", "from", "bbox" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1304-L1320
236,729
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnInsertRows
def OnInsertRows(self, event): """Insert the maximum of 1 and the number of selected rows""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][0] is None: # Insert rows at cursor ins_point = self.grid.actions.cursor[0] - 1 no_rows = 1 ...
python
def OnInsertRows(self, event): """Insert the maximum of 1 and the number of selected rows""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][0] is None: # Insert rows at cursor ins_point = self.grid.actions.cursor[0] - 1 no_rows = 1 ...
[ "def", "OnInsertRows", "(", "self", ",", "event", ")", ":", "bbox", "=", "self", ".", "grid", ".", "selection", ".", "get_bbox", "(", ")", "if", "bbox", "is", "None", "or", "bbox", "[", "1", "]", "[", "0", "]", "is", "None", ":", "# Insert rows at ...
Insert the maximum of 1 and the number of selected rows
[ "Insert", "the", "maximum", "of", "1", "and", "the", "number", "of", "selected", "rows" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1322-L1344
236,730
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnInsertCols
def OnInsertCols(self, event): """Inserts the maximum of 1 and the number of selected columns""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][1] is None: # Insert rows at cursor ins_point = self.grid.actions.cursor[1] - 1 no_cols = 1 ...
python
def OnInsertCols(self, event): """Inserts the maximum of 1 and the number of selected columns""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][1] is None: # Insert rows at cursor ins_point = self.grid.actions.cursor[1] - 1 no_cols = 1 ...
[ "def", "OnInsertCols", "(", "self", ",", "event", ")", ":", "bbox", "=", "self", ".", "grid", ".", "selection", ".", "get_bbox", "(", ")", "if", "bbox", "is", "None", "or", "bbox", "[", "1", "]", "[", "1", "]", "is", "None", ":", "# Insert rows at ...
Inserts the maximum of 1 and the number of selected columns
[ "Inserts", "the", "maximum", "of", "1", "and", "the", "number", "of", "selected", "columns" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1346-L1368
236,731
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnInsertTabs
def OnInsertTabs(self, event): """Insert one table into grid""" with undo.group(_("Insert table")): self.grid.actions.insert_tabs(self.grid.current_table - 1, 1) self.grid.GetTable().ResetView() self.grid.actions.zoom() event.Skip()
python
def OnInsertTabs(self, event): """Insert one table into grid""" with undo.group(_("Insert table")): self.grid.actions.insert_tabs(self.grid.current_table - 1, 1) self.grid.GetTable().ResetView() self.grid.actions.zoom() event.Skip()
[ "def", "OnInsertTabs", "(", "self", ",", "event", ")", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Insert table\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "insert_tabs", "(", "self", ".", "grid", ".", "current_table", "-", ...
Insert one table into grid
[ "Insert", "one", "table", "into", "grid" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1370-L1379
236,732
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnDeleteRows
def OnDeleteRows(self, event): """Deletes rows from all tables of the grid""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][0] is None: # Insert rows at cursor del_point = self.grid.actions.cursor[0] no_rows = 1 else: #...
python
def OnDeleteRows(self, event): """Deletes rows from all tables of the grid""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][0] is None: # Insert rows at cursor del_point = self.grid.actions.cursor[0] no_rows = 1 else: #...
[ "def", "OnDeleteRows", "(", "self", ",", "event", ")", ":", "bbox", "=", "self", ".", "grid", ".", "selection", ".", "get_bbox", "(", ")", "if", "bbox", "is", "None", "or", "bbox", "[", "1", "]", "[", "0", "]", "is", "None", ":", "# Insert rows at ...
Deletes rows from all tables of the grid
[ "Deletes", "rows", "from", "all", "tables", "of", "the", "grid" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1381-L1403
236,733
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnDeleteCols
def OnDeleteCols(self, event): """Deletes columns from all tables of the grid""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][1] is None: # Insert rows at cursor del_point = self.grid.actions.cursor[1] no_cols = 1 else: ...
python
def OnDeleteCols(self, event): """Deletes columns from all tables of the grid""" bbox = self.grid.selection.get_bbox() if bbox is None or bbox[1][1] is None: # Insert rows at cursor del_point = self.grid.actions.cursor[1] no_cols = 1 else: ...
[ "def", "OnDeleteCols", "(", "self", ",", "event", ")", ":", "bbox", "=", "self", ".", "grid", ".", "selection", ".", "get_bbox", "(", ")", "if", "bbox", "is", "None", "or", "bbox", "[", "1", "]", "[", "1", "]", "is", "None", ":", "# Insert rows at ...
Deletes columns from all tables of the grid
[ "Deletes", "columns", "from", "all", "tables", "of", "the", "grid" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1405-L1427
236,734
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnQuote
def OnQuote(self, event): """Quotes selection or if none the current cell""" grid = self.grid grid.DisableCellEditControl() with undo.group(_("Quote cell(s)")): # Is a selection present? if self.grid.IsSelection(): # Enclose all selected cells ...
python
def OnQuote(self, event): """Quotes selection or if none the current cell""" grid = self.grid grid.DisableCellEditControl() with undo.group(_("Quote cell(s)")): # Is a selection present? if self.grid.IsSelection(): # Enclose all selected cells ...
[ "def", "OnQuote", "(", "self", ",", "event", ")", ":", "grid", "=", "self", ".", "grid", "grid", ".", "DisableCellEditControl", "(", ")", "with", "undo", ".", "group", "(", "_", "(", "\"Quote cell(s)\"", ")", ")", ":", "# Is a selection present?", "if", ...
Quotes selection or if none the current cell
[ "Quotes", "selection", "or", "if", "none", "the", "current", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1460-L1482
236,735
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnRowSize
def OnRowSize(self, event): """Row size event handler""" row = event.GetRowOrCol() tab = self.grid.current_table rowsize = self.grid.GetRowSize(row) / self.grid.grid_renderer.zoom # Detect for resizing group of rows rows = self.grid.GetSelectedRows() if len(rows...
python
def OnRowSize(self, event): """Row size event handler""" row = event.GetRowOrCol() tab = self.grid.current_table rowsize = self.grid.GetRowSize(row) / self.grid.grid_renderer.zoom # Detect for resizing group of rows rows = self.grid.GetSelectedRows() if len(rows...
[ "def", "OnRowSize", "(", "self", ",", "event", ")", ":", "row", "=", "event", ".", "GetRowOrCol", "(", ")", "tab", "=", "self", ".", "grid", ".", "current_table", "rowsize", "=", "self", ".", "grid", ".", "GetRowSize", "(", "row", ")", "/", "self", ...
Row size event handler
[ "Row", "size", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1486-L1518
236,736
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnColSize
def OnColSize(self, event): """Column size event handler""" col = event.GetRowOrCol() tab = self.grid.current_table colsize = self.grid.GetColSize(col) / self.grid.grid_renderer.zoom # Detect for resizing group of cols cols = self.grid.GetSelectedCols() if len(c...
python
def OnColSize(self, event): """Column size event handler""" col = event.GetRowOrCol() tab = self.grid.current_table colsize = self.grid.GetColSize(col) / self.grid.grid_renderer.zoom # Detect for resizing group of cols cols = self.grid.GetSelectedCols() if len(c...
[ "def", "OnColSize", "(", "self", ",", "event", ")", ":", "col", "=", "event", ".", "GetRowOrCol", "(", ")", "tab", "=", "self", ".", "grid", ".", "current_table", "colsize", "=", "self", ".", "grid", ".", "GetColSize", "(", "col", ")", "/", "self", ...
Column size event handler
[ "Column", "size", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1520-L1552
236,737
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnSortAscending
def OnSortAscending(self, event): """Sort ascending event handler""" try: with undo.group(_("Sort ascending")): self.grid.actions.sort_ascending(self.grid.actions.cursor) statustext = _(u"Sorting complete.") except Exception, err: statustext ...
python
def OnSortAscending(self, event): """Sort ascending event handler""" try: with undo.group(_("Sort ascending")): self.grid.actions.sort_ascending(self.grid.actions.cursor) statustext = _(u"Sorting complete.") except Exception, err: statustext ...
[ "def", "OnSortAscending", "(", "self", ",", "event", ")", ":", "try", ":", "with", "undo", ".", "group", "(", "_", "(", "\"Sort ascending\"", ")", ")", ":", "self", ".", "grid", ".", "actions", ".", "sort_ascending", "(", "self", ".", "grid", ".", "a...
Sort ascending event handler
[ "Sort", "ascending", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1554-L1566
236,738
manns/pyspread
pyspread/src/gui/_grid.py
GridEventHandlers.OnUndo
def OnUndo(self, event): """Calls the grid undo method""" statustext = undo.stack().undotext() undo.stack().undo() # Update content changed state try: post_command_event(self.grid.main_window, self.grid.ContentChangedMsg) excep...
python
def OnUndo(self, event): """Calls the grid undo method""" statustext = undo.stack().undotext() undo.stack().undo() # Update content changed state try: post_command_event(self.grid.main_window, self.grid.ContentChangedMsg) excep...
[ "def", "OnUndo", "(", "self", ",", "event", ")", ":", "statustext", "=", "undo", ".", "stack", "(", ")", ".", "undotext", "(", ")", "undo", ".", "stack", "(", ")", ".", "undo", "(", ")", "# Update content changed state", "try", ":", "post_command_event",...
Calls the grid undo method
[ "Calls", "the", "grid", "undo", "method" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_grid.py#L1584-L1619
236,739
manns/pyspread
pyspread/examples/template_macro.py
rowcol_from_template
def rowcol_from_template(target_tab, template_tab=0): """Adjusts row heights and column widths to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table """ for row, tab in S.row_heights.keys(): # Delete all row heights in ...
python
def rowcol_from_template(target_tab, template_tab=0): """Adjusts row heights and column widths to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table """ for row, tab in S.row_heights.keys(): # Delete all row heights in ...
[ "def", "rowcol_from_template", "(", "target_tab", ",", "template_tab", "=", "0", ")", ":", "for", "row", ",", "tab", "in", "S", ".", "row_heights", ".", "keys", "(", ")", ":", "# Delete all row heights in target table", "if", "tab", "==", "target_tab", ":", ...
Adjusts row heights and column widths to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table
[ "Adjusts", "row", "heights", "and", "column", "widths", "to", "match", "the", "template" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/examples/template_macro.py#L1-L31
236,740
manns/pyspread
pyspread/examples/template_macro.py
cell_attributes_from_template
def cell_attributes_from_template(target_tab, template_tab=0): """Adjusts cell paarmeters to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table """ new_cell_attributes = [] for attr in S.cell_attributes: if attr[1] == ...
python
def cell_attributes_from_template(target_tab, template_tab=0): """Adjusts cell paarmeters to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table """ new_cell_attributes = [] for attr in S.cell_attributes: if attr[1] == ...
[ "def", "cell_attributes_from_template", "(", "target_tab", ",", "template_tab", "=", "0", ")", ":", "new_cell_attributes", "=", "[", "]", "for", "attr", "in", "S", ".", "cell_attributes", ":", "if", "attr", "[", "1", "]", "==", "template_tab", ":", "new_attr...
Adjusts cell paarmeters to match the template Parameters ---------- target_tab: Integer \tTable to be adjusted template_tab: Integer, defaults to 0 \tTemplate table
[ "Adjusts", "cell", "paarmeters", "to", "match", "the", "template" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/examples/template_macro.py#L33-L52
236,741
manns/pyspread
pyspread/src/lib/parsers.py
get_font_from_data
def get_font_from_data(fontdata): """Returns wx.Font from fontdata string""" textfont = get_default_font() if fontdata != "": nativefontinfo = wx.NativeFontInfo() nativefontinfo.FromString(fontdata) # OS X does not like a PointSize of 0 # Therefore, it is explicitly set to...
python
def get_font_from_data(fontdata): """Returns wx.Font from fontdata string""" textfont = get_default_font() if fontdata != "": nativefontinfo = wx.NativeFontInfo() nativefontinfo.FromString(fontdata) # OS X does not like a PointSize of 0 # Therefore, it is explicitly set to...
[ "def", "get_font_from_data", "(", "fontdata", ")", ":", "textfont", "=", "get_default_font", "(", ")", "if", "fontdata", "!=", "\"\"", ":", "nativefontinfo", "=", "wx", ".", "NativeFontInfo", "(", ")", "nativefontinfo", ".", "FromString", "(", "fontdata", ")",...
Returns wx.Font from fontdata string
[ "Returns", "wx", ".", "Font", "from", "fontdata", "string" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L52-L69
236,742
manns/pyspread
pyspread/src/lib/parsers.py
get_pen_from_data
def get_pen_from_data(pendata): """Returns wx.Pen from pendata attribute list""" pen_color = wx.Colour() pen_color.SetRGB(pendata[0]) pen = wx.Pen(pen_color, *pendata[1:]) pen.SetJoin(wx.JOIN_MITER) return pen
python
def get_pen_from_data(pendata): """Returns wx.Pen from pendata attribute list""" pen_color = wx.Colour() pen_color.SetRGB(pendata[0]) pen = wx.Pen(pen_color, *pendata[1:]) pen.SetJoin(wx.JOIN_MITER) return pen
[ "def", "get_pen_from_data", "(", "pendata", ")", ":", "pen_color", "=", "wx", ".", "Colour", "(", ")", "pen_color", ".", "SetRGB", "(", "pendata", "[", "0", "]", ")", "pen", "=", "wx", ".", "Pen", "(", "pen_color", ",", "*", "pendata", "[", "1", ":...
Returns wx.Pen from pendata attribute list
[ "Returns", "wx", ".", "Pen", "from", "pendata", "attribute", "list" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L72-L80
236,743
manns/pyspread
pyspread/src/lib/parsers.py
color_pack2rgb
def color_pack2rgb(packed): """Returns r, g, b tuple from packed wx.ColourGetRGB value""" r = packed & 255 g = (packed & (255 << 8)) >> 8 b = (packed & (255 << 16)) >> 16 return r, g, b
python
def color_pack2rgb(packed): """Returns r, g, b tuple from packed wx.ColourGetRGB value""" r = packed & 255 g = (packed & (255 << 8)) >> 8 b = (packed & (255 << 16)) >> 16 return r, g, b
[ "def", "color_pack2rgb", "(", "packed", ")", ":", "r", "=", "packed", "&", "255", "g", "=", "(", "packed", "&", "(", "255", "<<", "8", ")", ")", ">>", "8", "b", "=", "(", "packed", "&", "(", "255", "<<", "16", ")", ")", ">>", "16", "return", ...
Returns r, g, b tuple from packed wx.ColourGetRGB value
[ "Returns", "r", "g", "b", "tuple", "from", "packed", "wx", ".", "ColourGetRGB", "value" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L98-L105
236,744
manns/pyspread
pyspread/src/lib/parsers.py
unquote_string
def unquote_string(code): """Returns a string from code that contains a repr of the string""" scode = code.strip() assert scode[-1] in ["'", '"'] assert scode[0] in ["'", '"'] or scode[1] in ["'", '"'] return ast.literal_eval(scode)
python
def unquote_string(code): """Returns a string from code that contains a repr of the string""" scode = code.strip() assert scode[-1] in ["'", '"'] assert scode[0] in ["'", '"'] or scode[1] in ["'", '"'] return ast.literal_eval(scode)
[ "def", "unquote_string", "(", "code", ")", ":", "scode", "=", "code", ".", "strip", "(", ")", "assert", "scode", "[", "-", "1", "]", "in", "[", "\"'\"", ",", "'\"'", "]", "assert", "scode", "[", "0", "]", "in", "[", "\"'\"", ",", "'\"'", "]", "...
Returns a string from code that contains a repr of the string
[ "Returns", "a", "string", "from", "code", "that", "contains", "a", "repr", "of", "the", "string" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L114-L121
236,745
manns/pyspread
pyspread/src/lib/parsers.py
parse_dict_strings
def parse_dict_strings(code): """Generator of elements of a dict that is given in the code string Parsing is shallow, i.e. all content is yielded as strings Parameters ---------- code: String \tString that contains a dict """ i = 0 level = 0 chunk_start = 0 curr_paren = N...
python
def parse_dict_strings(code): """Generator of elements of a dict that is given in the code string Parsing is shallow, i.e. all content is yielded as strings Parameters ---------- code: String \tString that contains a dict """ i = 0 level = 0 chunk_start = 0 curr_paren = N...
[ "def", "parse_dict_strings", "(", "code", ")", ":", "i", "=", "0", "level", "=", "0", "chunk_start", "=", "0", "curr_paren", "=", "None", "for", "i", ",", "char", "in", "enumerate", "(", "code", ")", ":", "if", "char", "in", "[", "\"(\"", ",", "\"[...
Generator of elements of a dict that is given in the code string Parsing is shallow, i.e. all content is yielded as strings Parameters ---------- code: String \tString that contains a dict
[ "Generator", "of", "elements", "of", "a", "dict", "that", "is", "given", "in", "the", "code", "string" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L124-L156
236,746
manns/pyspread
pyspread/src/lib/parsers.py
common_start
def common_start(strings): """Returns start sub-string that is common for all given strings Parameters ---------- strings: List of strings \tThese strings are evaluated for their largest common start string """ def gen_start_strings(string): """Generator that yield start sub-strin...
python
def common_start(strings): """Returns start sub-string that is common for all given strings Parameters ---------- strings: List of strings \tThese strings are evaluated for their largest common start string """ def gen_start_strings(string): """Generator that yield start sub-strin...
[ "def", "common_start", "(", "strings", ")", ":", "def", "gen_start_strings", "(", "string", ")", ":", "\"\"\"Generator that yield start sub-strings of length 1, 2, ...\"\"\"", "for", "i", "in", "xrange", "(", "1", ",", "len", "(", "string", ")", "+", "1", ")", "...
Returns start sub-string that is common for all given strings Parameters ---------- strings: List of strings \tThese strings are evaluated for their largest common start string
[ "Returns", "start", "sub", "-", "string", "that", "is", "common", "for", "all", "given", "strings" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L159-L186
236,747
manns/pyspread
pyspread/src/lib/parsers.py
is_svg
def is_svg(code): """Checks if code is an svg image Parameters ---------- code: String \tCode to be parsed in order to check svg complaince """ if rsvg is None: return try: rsvg.Handle(data=code) except glib.GError: return False # The SVG file has to...
python
def is_svg(code): """Checks if code is an svg image Parameters ---------- code: String \tCode to be parsed in order to check svg complaince """ if rsvg is None: return try: rsvg.Handle(data=code) except glib.GError: return False # The SVG file has to...
[ "def", "is_svg", "(", "code", ")", ":", "if", "rsvg", "is", "None", ":", "return", "try", ":", "rsvg", ".", "Handle", "(", "data", "=", "code", ")", "except", "glib", ".", "GError", ":", "return", "False", "# The SVG file has to refer to its xmlns", "# Hop...
Checks if code is an svg image Parameters ---------- code: String \tCode to be parsed in order to check svg complaince
[ "Checks", "if", "code", "is", "an", "svg", "image" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/parsers.py#L189-L214
236,748
manns/pyspread
pyspread/src/gui/_cairo_export_dialog.py
CairoExportDialog._get_dialog_title
def _get_dialog_title(self): """Returns title string""" title_filetype = self.filetype[0].upper() + self.filetype[1:] if self.filetype == "print": title_export = "" else: title_export = " export" return _("{filetype}{export} options").format(filetype=ti...
python
def _get_dialog_title(self): """Returns title string""" title_filetype = self.filetype[0].upper() + self.filetype[1:] if self.filetype == "print": title_export = "" else: title_export = " export" return _("{filetype}{export} options").format(filetype=ti...
[ "def", "_get_dialog_title", "(", "self", ")", ":", "title_filetype", "=", "self", ".", "filetype", "[", "0", "]", ".", "upper", "(", ")", "+", "self", ".", "filetype", "[", "1", ":", "]", "if", "self", ".", "filetype", "==", "\"print\"", ":", "title_...
Returns title string
[ "Returns", "title", "string" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_cairo_export_dialog.py#L118-L129
236,749
manns/pyspread
pyspread/src/gui/_cairo_export_dialog.py
CairoExportDialog.on_page_layout_choice
def on_page_layout_choice(self, event): """Page layout choice event handler""" width, height = self.paper_sizes_points[event.GetString()] self.page_width_text_ctrl.SetValue(str(width / 72.0)) self.page_height_text_ctrl.SetValue(str(height / 72.0)) event.Skip()
python
def on_page_layout_choice(self, event): """Page layout choice event handler""" width, height = self.paper_sizes_points[event.GetString()] self.page_width_text_ctrl.SetValue(str(width / 72.0)) self.page_height_text_ctrl.SetValue(str(height / 72.0)) event.Skip()
[ "def", "on_page_layout_choice", "(", "self", ",", "event", ")", ":", "width", ",", "height", "=", "self", ".", "paper_sizes_points", "[", "event", ".", "GetString", "(", ")", "]", "self", ".", "page_width_text_ctrl", ".", "SetValue", "(", "str", "(", "widt...
Page layout choice event handler
[ "Page", "layout", "choice", "event", "handler" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_cairo_export_dialog.py#L248-L255
236,750
manns/pyspread
pyspread/src/gui/_cairo_export_dialog.py
CairoExportDialog.get_info
def get_info(self): """Returns a dict with the dialog PDF info Dict keys are: top_row, bottom_row, left_col, right_col, first_tab, last_tab, paper_width, paper_height """ info = {} info["top_row"] = self.top_row_text_ctrl.GetValue() info["bottom_row"] ...
python
def get_info(self): """Returns a dict with the dialog PDF info Dict keys are: top_row, bottom_row, left_col, right_col, first_tab, last_tab, paper_width, paper_height """ info = {} info["top_row"] = self.top_row_text_ctrl.GetValue() info["bottom_row"] ...
[ "def", "get_info", "(", "self", ")", ":", "info", "=", "{", "}", "info", "[", "\"top_row\"", "]", "=", "self", ".", "top_row_text_ctrl", ".", "GetValue", "(", ")", "info", "[", "\"bottom_row\"", "]", "=", "self", ".", "bottom_row_text_ctrl", ".", "GetVal...
Returns a dict with the dialog PDF info Dict keys are: top_row, bottom_row, left_col, right_col, first_tab, last_tab, paper_width, paper_height
[ "Returns", "a", "dict", "with", "the", "dialog", "PDF", "info" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/gui/_cairo_export_dialog.py#L257-L293
236,751
manns/pyspread
pyspread/src/sysvars.py
get_program_path
def get_program_path(): """Returns the path in which pyspread is installed""" src_folder = os.path.dirname(__file__) program_path = os.sep.join(src_folder.split(os.sep)[:-1]) + os.sep return program_path
python
def get_program_path(): """Returns the path in which pyspread is installed""" src_folder = os.path.dirname(__file__) program_path = os.sep.join(src_folder.split(os.sep)[:-1]) + os.sep return program_path
[ "def", "get_program_path", "(", ")", ":", "src_folder", "=", "os", ".", "path", ".", "dirname", "(", "__file__", ")", "program_path", "=", "os", ".", "sep", ".", "join", "(", "src_folder", ".", "split", "(", "os", ".", "sep", ")", "[", ":", "-", "1...
Returns the path in which pyspread is installed
[ "Returns", "the", "path", "in", "which", "pyspread", "is", "installed" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/sysvars.py#L44-L50
236,752
manns/pyspread
pyspread/src/sysvars.py
get_dpi
def get_dpi(): """Returns screen dpi resolution""" def pxmm_2_dpi((pixels, length_mm)): return pixels * 25.6 / length_mm return map(pxmm_2_dpi, zip(wx.GetDisplaySize(), wx.GetDisplaySizeMM()))
python
def get_dpi(): """Returns screen dpi resolution""" def pxmm_2_dpi((pixels, length_mm)): return pixels * 25.6 / length_mm return map(pxmm_2_dpi, zip(wx.GetDisplaySize(), wx.GetDisplaySizeMM()))
[ "def", "get_dpi", "(", ")", ":", "def", "pxmm_2_dpi", "(", "(", "pixels", ",", "length_mm", ")", ")", ":", "return", "pixels", "*", "25.6", "/", "length_mm", "return", "map", "(", "pxmm_2_dpi", ",", "zip", "(", "wx", ".", "GetDisplaySize", "(", ")", ...
Returns screen dpi resolution
[ "Returns", "screen", "dpi", "resolution" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/sysvars.py#L83-L89
236,753
manns/pyspread
pyspread/src/sysvars.py
get_font_list
def get_font_list(): """Returns a sorted list of all system font names""" font_map = pangocairo.cairo_font_map_get_default() font_list = [f.get_name() for f in font_map.list_families()] font_list.sort() return font_list
python
def get_font_list(): """Returns a sorted list of all system font names""" font_map = pangocairo.cairo_font_map_get_default() font_list = [f.get_name() for f in font_map.list_families()] font_list.sort() return font_list
[ "def", "get_font_list", "(", ")", ":", "font_map", "=", "pangocairo", ".", "cairo_font_map_get_default", "(", ")", "font_list", "=", "[", "f", ".", "get_name", "(", ")", "for", "f", "in", "font_map", ".", "list_families", "(", ")", "]", "font_list", ".", ...
Returns a sorted list of all system font names
[ "Returns", "a", "sorted", "list", "of", "all", "system", "font", "names" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/sysvars.py#L112-L119
236,754
manns/pyspread
pyspread/src/sysvars.py
get_dependencies
def get_dependencies(): """Returns list of dicts which indicate installed dependencies""" dependencies = [] # Numpy dep_attrs = { "name": "numpy", "min_version": "1.1.0", "description": "required", } try: import numpy dep_attrs["version"] = numpy.version...
python
def get_dependencies(): """Returns list of dicts which indicate installed dependencies""" dependencies = [] # Numpy dep_attrs = { "name": "numpy", "min_version": "1.1.0", "description": "required", } try: import numpy dep_attrs["version"] = numpy.version...
[ "def", "get_dependencies", "(", ")", ":", "dependencies", "=", "[", "]", "# Numpy", "dep_attrs", "=", "{", "\"name\"", ":", "\"numpy\"", ",", "\"min_version\"", ":", "\"1.1.0\"", ",", "\"description\"", ":", "\"required\"", ",", "}", "try", ":", "import", "n...
Returns list of dicts which indicate installed dependencies
[ "Returns", "list", "of", "dicts", "which", "indicate", "installed", "dependencies" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/sysvars.py#L128-L267
236,755
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCairoRenderer.get_cell_rect
def get_cell_rect(self, row, col, tab): """Returns rectangle of cell on canvas""" top_row = self.row_tb[0] left_col = self.col_rl[0] pos_x = self.x_offset pos_y = self.y_offset merge_area = self._get_merge_area((row, col, tab)) for __row in xrange(top_row, row...
python
def get_cell_rect(self, row, col, tab): """Returns rectangle of cell on canvas""" top_row = self.row_tb[0] left_col = self.col_rl[0] pos_x = self.x_offset pos_y = self.y_offset merge_area = self._get_merge_area((row, col, tab)) for __row in xrange(top_row, row...
[ "def", "get_cell_rect", "(", "self", ",", "row", ",", "col", ",", "tab", ")", ":", "top_row", "=", "self", ".", "row_tb", "[", "0", "]", "left_col", "=", "self", ".", "col_rl", "[", "0", "]", "pos_x", "=", "self", ".", "x_offset", "pos_y", "=", "...
Returns rectangle of cell on canvas
[ "Returns", "rectangle", "of", "cell", "on", "canvas" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L129-L167
236,756
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCairoRenderer.draw
def draw(self): """Draws slice to context""" row_start, row_stop = self.row_tb col_start, col_stop = self.col_rl tab_start, tab_stop = self.tab_fl for tab in xrange(tab_start, tab_stop): # Scale context to page extent # In order to keep the aspect ration...
python
def draw(self): """Draws slice to context""" row_start, row_stop = self.row_tb col_start, col_stop = self.col_rl tab_start, tab_stop = self.tab_fl for tab in xrange(tab_start, tab_stop): # Scale context to page extent # In order to keep the aspect ration...
[ "def", "draw", "(", "self", ")", ":", "row_start", ",", "row_stop", "=", "self", ".", "row_tb", "col_start", ",", "col_stop", "=", "self", ".", "col_rl", "tab_start", ",", "tab_stop", "=", "self", ".", "tab_fl", "for", "tab", "in", "xrange", "(", "tab_...
Draws slice to context
[ "Draws", "slice", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L179-L244
236,757
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellCairoRenderer.draw
def draw(self): """Draws cell to context""" cell_background_renderer = GridCellBackgroundCairoRenderer( self.context, self.code_array, self.key, self.rect, self.view_frozen) cell_content_renderer = GridCellContentCairoRenderer( ...
python
def draw(self): """Draws cell to context""" cell_background_renderer = GridCellBackgroundCairoRenderer( self.context, self.code_array, self.key, self.rect, self.view_frozen) cell_content_renderer = GridCellContentCairoRenderer( ...
[ "def", "draw", "(", "self", ")", ":", "cell_background_renderer", "=", "GridCellBackgroundCairoRenderer", "(", "self", ".", "context", ",", "self", ".", "code_array", ",", "self", ".", "key", ",", "self", ".", "rect", ",", "self", ".", "view_frozen", ")", ...
Draws cell to context
[ "Draws", "cell", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L273-L298
236,758
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.get_cell_content
def get_cell_content(self): """Returns cell content""" try: if self.code_array.cell_attributes[self.key]["button_cell"]: return except IndexError: return try: return self.code_array[self.key] except IndexError: p...
python
def get_cell_content(self): """Returns cell content""" try: if self.code_array.cell_attributes[self.key]["button_cell"]: return except IndexError: return try: return self.code_array[self.key] except IndexError: p...
[ "def", "get_cell_content", "(", "self", ")", ":", "try", ":", "if", "self", ".", "code_array", ".", "cell_attributes", "[", "self", ".", "key", "]", "[", "\"button_cell\"", "]", ":", "return", "except", "IndexError", ":", "return", "try", ":", "return", ...
Returns cell content
[ "Returns", "cell", "content" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L323-L337
236,759
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer._get_scalexy
def _get_scalexy(self, ims_width, ims_height): """Returns scale_x, scale_y for bitmap display""" # Get cell attributes cell_attributes = self.code_array.cell_attributes[self.key] angle = cell_attributes["angle"] if abs(angle) == 90: scale_x = self.rect[3] / float(im...
python
def _get_scalexy(self, ims_width, ims_height): """Returns scale_x, scale_y for bitmap display""" # Get cell attributes cell_attributes = self.code_array.cell_attributes[self.key] angle = cell_attributes["angle"] if abs(angle) == 90: scale_x = self.rect[3] / float(im...
[ "def", "_get_scalexy", "(", "self", ",", "ims_width", ",", "ims_height", ")", ":", "# Get cell attributes", "cell_attributes", "=", "self", ".", "code_array", ".", "cell_attributes", "[", "self", ".", "key", "]", "angle", "=", "cell_attributes", "[", "\"angle\""...
Returns scale_x, scale_y for bitmap display
[ "Returns", "scale_x", "scale_y", "for", "bitmap", "display" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L339-L355
236,760
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer._get_translation
def _get_translation(self, ims_width, ims_height): """Returns x and y for a bitmap translation""" # Get cell attributes cell_attributes = self.code_array.cell_attributes[self.key] justification = cell_attributes["justification"] vertical_align = cell_attributes["vertical_align"]...
python
def _get_translation(self, ims_width, ims_height): """Returns x and y for a bitmap translation""" # Get cell attributes cell_attributes = self.code_array.cell_attributes[self.key] justification = cell_attributes["justification"] vertical_align = cell_attributes["vertical_align"]...
[ "def", "_get_translation", "(", "self", ",", "ims_width", ",", "ims_height", ")", ":", "# Get cell attributes", "cell_attributes", "=", "self", ".", "code_array", ".", "cell_attributes", "[", "self", ".", "key", "]", "justification", "=", "cell_attributes", "[", ...
Returns x and y for a bitmap translation
[ "Returns", "x", "and", "y", "for", "a", "bitmap", "translation" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L357-L442
236,761
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_bitmap
def draw_bitmap(self, content): """Draws bitmap cell content to context""" if content.HasAlpha(): image = wx.ImageFromBitmap(content) image.ConvertAlphaToMask() image.SetMask(False) content = wx.BitmapFromImage(image) ims = wx.lib.wxcairo.ImageSu...
python
def draw_bitmap(self, content): """Draws bitmap cell content to context""" if content.HasAlpha(): image = wx.ImageFromBitmap(content) image.ConvertAlphaToMask() image.SetMask(False) content = wx.BitmapFromImage(image) ims = wx.lib.wxcairo.ImageSu...
[ "def", "draw_bitmap", "(", "self", ",", "content", ")", ":", "if", "content", ".", "HasAlpha", "(", ")", ":", "image", "=", "wx", ".", "ImageFromBitmap", "(", "content", ")", "image", ".", "ConvertAlphaToMask", "(", ")", "image", ".", "SetMask", "(", "...
Draws bitmap cell content to context
[ "Draws", "bitmap", "cell", "content", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L444-L471
236,762
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_svg
def draw_svg(self, svg_str): """Draws svg string to cell""" try: import rsvg except ImportError: self.draw_text(svg_str) return svg = rsvg.Handle(data=svg_str) svg_width, svg_height = svg.get_dimension_data()[:2] transx, transy = se...
python
def draw_svg(self, svg_str): """Draws svg string to cell""" try: import rsvg except ImportError: self.draw_text(svg_str) return svg = rsvg.Handle(data=svg_str) svg_width, svg_height = svg.get_dimension_data()[:2] transx, transy = se...
[ "def", "draw_svg", "(", "self", ",", "svg_str", ")", ":", "try", ":", "import", "rsvg", "except", "ImportError", ":", "self", ".", "draw_text", "(", "svg_str", ")", "return", "svg", "=", "rsvg", ".", "Handle", "(", "data", "=", "svg_str", ")", "svg_wid...
Draws svg string to cell
[ "Draws", "svg", "string", "to", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L473-L498
236,763
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_matplotlib_figure
def draw_matplotlib_figure(self, figure): """Draws matplotlib figure to context""" class CustomRendererCairo(RendererCairo): """Workaround for older versins with limited draw path length""" if sys.byteorder == 'little': BYTE_FORMAT = 0 # BGRA else: ...
python
def draw_matplotlib_figure(self, figure): """Draws matplotlib figure to context""" class CustomRendererCairo(RendererCairo): """Workaround for older versins with limited draw path length""" if sys.byteorder == 'little': BYTE_FORMAT = 0 # BGRA else: ...
[ "def", "draw_matplotlib_figure", "(", "self", ",", "figure", ")", ":", "class", "CustomRendererCairo", "(", "RendererCairo", ")", ":", "\"\"\"Workaround for older versins with limited draw path length\"\"\"", "if", "sys", ".", "byteorder", "==", "'little'", ":", "BYTE_FOR...
Draws matplotlib figure to context
[ "Draws", "matplotlib", "figure", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L500-L569
236,764
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer._get_text_color
def _get_text_color(self): """Returns text color rgb tuple of right line""" color = self.code_array.cell_attributes[self.key]["textcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
python
def _get_text_color(self): """Returns text color rgb tuple of right line""" color = self.code_array.cell_attributes[self.key]["textcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
[ "def", "_get_text_color", "(", "self", ")", ":", "color", "=", "self", ".", "code_array", ".", "cell_attributes", "[", "self", ".", "key", "]", "[", "\"textcolor\"", "]", "return", "tuple", "(", "c", "/", "255.0", "for", "c", "in", "color_pack2rgb", "(",...
Returns text color rgb tuple of right line
[ "Returns", "text", "color", "rgb", "tuple", "of", "right", "line" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L571-L575
236,765
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.set_font
def set_font(self, pango_layout): """Sets the font for draw_text""" wx2pango_weights = { wx.FONTWEIGHT_BOLD: pango.WEIGHT_BOLD, wx.FONTWEIGHT_LIGHT: pango.WEIGHT_LIGHT, wx.FONTWEIGHT_NORMAL: None, # Do not set a weight by default } wx2pango_styles =...
python
def set_font(self, pango_layout): """Sets the font for draw_text""" wx2pango_weights = { wx.FONTWEIGHT_BOLD: pango.WEIGHT_BOLD, wx.FONTWEIGHT_LIGHT: pango.WEIGHT_LIGHT, wx.FONTWEIGHT_NORMAL: None, # Do not set a weight by default } wx2pango_styles =...
[ "def", "set_font", "(", "self", ",", "pango_layout", ")", ":", "wx2pango_weights", "=", "{", "wx", ".", "FONTWEIGHT_BOLD", ":", "pango", ".", "WEIGHT_BOLD", ",", "wx", ".", "FONTWEIGHT_LIGHT", ":", "pango", ".", "WEIGHT_LIGHT", ",", "wx", ".", "FONTWEIGHT_NO...
Sets the font for draw_text
[ "Sets", "the", "font", "for", "draw_text" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L577-L626
236,766
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer._draw_error_underline
def _draw_error_underline(self, ptx, pango_layout, start, stop): """Draws an error underline""" self.context.save() self.context.set_source_rgb(1.0, 0.0, 0.0) pit = pango_layout.get_iter() # Skip characters until start for i in xrange(start): pit.next_char(...
python
def _draw_error_underline(self, ptx, pango_layout, start, stop): """Draws an error underline""" self.context.save() self.context.set_source_rgb(1.0, 0.0, 0.0) pit = pango_layout.get_iter() # Skip characters until start for i in xrange(start): pit.next_char(...
[ "def", "_draw_error_underline", "(", "self", ",", "ptx", ",", "pango_layout", ",", "start", ",", "stop", ")", ":", "self", ".", "context", ".", "save", "(", ")", "self", ".", "context", ".", "set_source_rgb", "(", "1.0", ",", "0.0", ",", "0.0", ")", ...
Draws an error underline
[ "Draws", "an", "error", "underline" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L655-L693
236,767
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer._check_spelling
def _check_spelling(self, text, lang="en_US"): """Returns a list of start stop tuples that have spelling errors Parameters ---------- text: Unicode or string \tThe text that is checked lang: String, defaults to "en_US" \tName of spell checking dictionary ...
python
def _check_spelling(self, text, lang="en_US"): """Returns a list of start stop tuples that have spelling errors Parameters ---------- text: Unicode or string \tThe text that is checked lang: String, defaults to "en_US" \tName of spell checking dictionary ...
[ "def", "_check_spelling", "(", "self", ",", "text", ",", "lang", "=", "\"en_US\"", ")", ":", "chkr", "=", "SpellChecker", "(", "lang", ")", "chkr", ".", "set_text", "(", "text", ")", "word_starts_ends", "=", "[", "]", "for", "err", "in", "chkr", ":", ...
Returns a list of start stop tuples that have spelling errors Parameters ---------- text: Unicode or string \tThe text that is checked lang: String, defaults to "en_US" \tName of spell checking dictionary
[ "Returns", "a", "list", "of", "start", "stop", "tuples", "that", "have", "spelling", "errors" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L695-L718
236,768
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_text
def draw_text(self, content): """Draws text cell content to context""" wx2pango_alignment = { "left": pango.ALIGN_LEFT, "center": pango.ALIGN_CENTER, "right": pango.ALIGN_RIGHT, } cell_attributes = self.code_array.cell_attributes[self.key] a...
python
def draw_text(self, content): """Draws text cell content to context""" wx2pango_alignment = { "left": pango.ALIGN_LEFT, "center": pango.ALIGN_CENTER, "right": pango.ALIGN_RIGHT, } cell_attributes = self.code_array.cell_attributes[self.key] a...
[ "def", "draw_text", "(", "self", ",", "content", ")", ":", "wx2pango_alignment", "=", "{", "\"left\"", ":", "pango", ".", "ALIGN_LEFT", ",", "\"center\"", ":", "pango", ".", "ALIGN_CENTER", ",", "\"right\"", ":", "pango", ".", "ALIGN_RIGHT", ",", "}", "cel...
Draws text cell content to context
[ "Draws", "text", "cell", "content", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L720-L797
236,769
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_roundedrect
def draw_roundedrect(self, x, y, w, h, r=10): """Draws a rounded rectangle""" # A****BQ # H C # * * # G D # F****E context = self.context context.save context.move_to(x+r, y) # Move to A context.line_to(x+w-r, y) # Straight...
python
def draw_roundedrect(self, x, y, w, h, r=10): """Draws a rounded rectangle""" # A****BQ # H C # * * # G D # F****E context = self.context context.save context.move_to(x+r, y) # Move to A context.line_to(x+w-r, y) # Straight...
[ "def", "draw_roundedrect", "(", "self", ",", "x", ",", "y", ",", "w", ",", "h", ",", "r", "=", "10", ")", ":", "# A****BQ", "# H C", "# * *", "# G D", "# F****E", "context", "=", "self", ".", "context", "context", ".", "save", "context", "....
Draws a rounded rectangle
[ "Draws", "a", "rounded", "rectangle" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L799-L822
236,770
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw_button
def draw_button(self, x, y, w, h, label): """Draws a button""" context = self.context self.draw_roundedrect(x, y, w, h) context.clip() # Set up the gradients gradient = cairo.LinearGradient(0, 0, 0, 1) gradient.add_color_stop_rgba(0, 0.5, 0.5, 0.5, 0.1) ...
python
def draw_button(self, x, y, w, h, label): """Draws a button""" context = self.context self.draw_roundedrect(x, y, w, h) context.clip() # Set up the gradients gradient = cairo.LinearGradient(0, 0, 0, 1) gradient.add_color_stop_rgba(0, 0.5, 0.5, 0.5, 0.1) ...
[ "def", "draw_button", "(", "self", ",", "x", ",", "y", ",", "w", ",", "h", ",", "label", ")", ":", "context", "=", "self", ".", "context", "self", ".", "draw_roundedrect", "(", "x", ",", "y", ",", "w", ",", "h", ")", "context", ".", "clip", "("...
Draws a button
[ "Draws", "a", "button" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L824-L863
236,771
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellContentCairoRenderer.draw
def draw(self): """Draws cell content to context""" # Content is only rendered within rect self.context.save() self.context.rectangle(*self.rect) self.context.clip() content = self.get_cell_content() pos_x, pos_y = self.rect[:2] self.context.translate(p...
python
def draw(self): """Draws cell content to context""" # Content is only rendered within rect self.context.save() self.context.rectangle(*self.rect) self.context.clip() content = self.get_cell_content() pos_x, pos_y = self.rect[:2] self.context.translate(p...
[ "def", "draw", "(", "self", ")", ":", "# Content is only rendered within rect", "self", ".", "context", ".", "save", "(", ")", "self", ".", "context", ".", "rectangle", "(", "*", "self", ".", "rect", ")", "self", ".", "context", ".", "clip", "(", ")", ...
Draws cell content to context
[ "Draws", "cell", "content", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L865-L911
236,772
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellBackgroundCairoRenderer._get_background_color
def _get_background_color(self): """Returns background color rgb tuple of right line""" color = self.cell_attributes[self.key]["bgcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
python
def _get_background_color(self): """Returns background color rgb tuple of right line""" color = self.cell_attributes[self.key]["bgcolor"] return tuple(c / 255.0 for c in color_pack2rgb(color))
[ "def", "_get_background_color", "(", "self", ")", ":", "color", "=", "self", ".", "cell_attributes", "[", "self", ".", "key", "]", "[", "\"bgcolor\"", "]", "return", "tuple", "(", "c", "/", "255.0", "for", "c", "in", "color_pack2rgb", "(", "color", ")", ...
Returns background color rgb tuple of right line
[ "Returns", "background", "color", "rgb", "tuple", "of", "right", "line" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L938-L942
236,773
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellBackgroundCairoRenderer._draw_frozen_pattern
def _draw_frozen_pattern(self): """Draws frozen pattern, i.e. diagonal lines""" self.context.save() x, y, w, h = self.rect self.context.set_source_rgb(0, 0, 1) self.context.set_line_width(0.25) self.context.rectangle(*self.rect) self.context.clip() for ...
python
def _draw_frozen_pattern(self): """Draws frozen pattern, i.e. diagonal lines""" self.context.save() x, y, w, h = self.rect self.context.set_source_rgb(0, 0, 1) self.context.set_line_width(0.25) self.context.rectangle(*self.rect) self.context.clip() for ...
[ "def", "_draw_frozen_pattern", "(", "self", ")", ":", "self", ".", "context", ".", "save", "(", ")", "x", ",", "y", ",", "w", ",", "h", "=", "self", ".", "rect", "self", ".", "context", ".", "set_source_rgb", "(", "0", ",", "0", ",", "1", ")", ...
Draws frozen pattern, i.e. diagonal lines
[ "Draws", "frozen", "pattern", "i", ".", "e", ".", "diagonal", "lines" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L944-L960
236,774
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
GridCellBackgroundCairoRenderer.draw
def draw(self): """Draws cell background to context""" self.context.set_source_rgb(*self._get_background_color()) self.context.rectangle(*self.rect) self.context.fill() # If show frozen is active, show frozen pattern if self.view_frozen and self.cell_attributes[self.key...
python
def draw(self): """Draws cell background to context""" self.context.set_source_rgb(*self._get_background_color()) self.context.rectangle(*self.rect) self.context.fill() # If show frozen is active, show frozen pattern if self.view_frozen and self.cell_attributes[self.key...
[ "def", "draw", "(", "self", ")", ":", "self", ".", "context", ".", "set_source_rgb", "(", "*", "self", ".", "_get_background_color", "(", ")", ")", "self", ".", "context", ".", "rectangle", "(", "*", "self", ".", "rect", ")", "self", ".", "context", ...
Draws cell background to context
[ "Draws", "cell", "background", "to", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L962-L971
236,775
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorder.draw
def draw(self, context): """Draws self to Cairo context""" context.set_line_width(self.width) context.set_source_rgb(*self.color) context.move_to(*self.start_point) context.line_to(*self.end_point) context.stroke()
python
def draw(self, context): """Draws self to Cairo context""" context.set_line_width(self.width) context.set_source_rgb(*self.color) context.move_to(*self.start_point) context.line_to(*self.end_point) context.stroke()
[ "def", "draw", "(", "self", ",", "context", ")", ":", "context", ".", "set_line_width", "(", "self", ".", "width", ")", "context", ".", "set_source_rgb", "(", "*", "self", ".", "color", ")", "context", ".", "move_to", "(", "*", "self", ".", "start_poin...
Draws self to Cairo context
[ "Draws", "self", "to", "Cairo", "context" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L996-L1004
236,776
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_above_key_rect
def get_above_key_rect(self): """Returns tuple key rect of above cell""" key_above = self.row - 1, self.col, self.tab border_width_bottom = \ float(self.cell_attributes[key_above]["borderwidth_bottom"]) / 2.0 rect_above = (self.x, self.y-border_width_bottom, ...
python
def get_above_key_rect(self): """Returns tuple key rect of above cell""" key_above = self.row - 1, self.col, self.tab border_width_bottom = \ float(self.cell_attributes[key_above]["borderwidth_bottom"]) / 2.0 rect_above = (self.x, self.y-border_width_bottom, ...
[ "def", "get_above_key_rect", "(", "self", ")", ":", "key_above", "=", "self", ".", "row", "-", "1", ",", "self", ".", "col", ",", "self", ".", "tab", "border_width_bottom", "=", "float", "(", "self", ".", "cell_attributes", "[", "key_above", "]", "[", ...
Returns tuple key rect of above cell
[ "Returns", "tuple", "key", "rect", "of", "above", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1015-L1025
236,777
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_below_key_rect
def get_below_key_rect(self): """Returns tuple key rect of below cell""" key_below = self.row + 1, self.col, self.tab border_width_bottom = \ float(self.cell_attributes[self.key]["borderwidth_bottom"]) / 2.0 rect_below = (self.x, self.y+self.height, s...
python
def get_below_key_rect(self): """Returns tuple key rect of below cell""" key_below = self.row + 1, self.col, self.tab border_width_bottom = \ float(self.cell_attributes[self.key]["borderwidth_bottom"]) / 2.0 rect_below = (self.x, self.y+self.height, s...
[ "def", "get_below_key_rect", "(", "self", ")", ":", "key_below", "=", "self", ".", "row", "+", "1", ",", "self", ".", "col", ",", "self", ".", "tab", "border_width_bottom", "=", "float", "(", "self", ".", "cell_attributes", "[", "self", ".", "key", "]"...
Returns tuple key rect of below cell
[ "Returns", "tuple", "key", "rect", "of", "below", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1027-L1037
236,778
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_left_key_rect
def get_left_key_rect(self): """Returns tuple key rect of left cell""" key_left = self.row, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_left]["borderwidth_right"]) / 2.0 rect_left = (self.x-border_width_right, self.y, b...
python
def get_left_key_rect(self): """Returns tuple key rect of left cell""" key_left = self.row, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_left]["borderwidth_right"]) / 2.0 rect_left = (self.x-border_width_right, self.y, b...
[ "def", "get_left_key_rect", "(", "self", ")", ":", "key_left", "=", "self", ".", "row", ",", "self", ".", "col", "-", "1", ",", "self", ".", "tab", "border_width_right", "=", "float", "(", "self", ".", "cell_attributes", "[", "key_left", "]", "[", "\"b...
Returns tuple key rect of left cell
[ "Returns", "tuple", "key", "rect", "of", "left", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1039-L1049
236,779
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_right_key_rect
def get_right_key_rect(self): """Returns tuple key rect of right cell""" key_right = self.row, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[self.key]["borderwidth_right"]) / 2.0 rect_right = (self.x+self.width, self.y, bord...
python
def get_right_key_rect(self): """Returns tuple key rect of right cell""" key_right = self.row, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[self.key]["borderwidth_right"]) / 2.0 rect_right = (self.x+self.width, self.y, bord...
[ "def", "get_right_key_rect", "(", "self", ")", ":", "key_right", "=", "self", ".", "row", ",", "self", ".", "col", "+", "1", ",", "self", ".", "tab", "border_width_right", "=", "float", "(", "self", ".", "cell_attributes", "[", "self", ".", "key", "]",...
Returns tuple key rect of right cell
[ "Returns", "tuple", "key", "rect", "of", "right", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1051-L1061
236,780
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_above_left_key_rect
def get_above_left_key_rect(self): """Returns tuple key rect of above left cell""" key_above_left = self.row - 1, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_above_left]["borderwidth_right"]) \ / 2.0 border_width_bottom = \ ...
python
def get_above_left_key_rect(self): """Returns tuple key rect of above left cell""" key_above_left = self.row - 1, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_above_left]["borderwidth_right"]) \ / 2.0 border_width_bottom = \ ...
[ "def", "get_above_left_key_rect", "(", "self", ")", ":", "key_above_left", "=", "self", ".", "row", "-", "1", ",", "self", ".", "col", "-", "1", ",", "self", ".", "tab", "border_width_right", "=", "float", "(", "self", ".", "cell_attributes", "[", "key_a...
Returns tuple key rect of above left cell
[ "Returns", "tuple", "key", "rect", "of", "above", "left", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1063-L1078
236,781
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_above_right_key_rect
def get_above_right_key_rect(self): """Returns tuple key rect of above right cell""" key_above = self.row - 1, self.col, self.tab key_above_right = self.row - 1, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[key_above]["borderwidth_right"]) / 2.0 ...
python
def get_above_right_key_rect(self): """Returns tuple key rect of above right cell""" key_above = self.row - 1, self.col, self.tab key_above_right = self.row - 1, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[key_above]["borderwidth_right"]) / 2.0 ...
[ "def", "get_above_right_key_rect", "(", "self", ")", ":", "key_above", "=", "self", ".", "row", "-", "1", ",", "self", ".", "col", ",", "self", ".", "tab", "key_above_right", "=", "self", ".", "row", "-", "1", ",", "self", ".", "col", "+", "1", ","...
Returns tuple key rect of above right cell
[ "Returns", "tuple", "key", "rect", "of", "above", "right", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1080-L1094
236,782
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_below_left_key_rect
def get_below_left_key_rect(self): """Returns tuple key rect of below left cell""" key_left = self.row, self.col - 1, self.tab key_below_left = self.row + 1, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_below_left]["borderwidth_right"]) \ ...
python
def get_below_left_key_rect(self): """Returns tuple key rect of below left cell""" key_left = self.row, self.col - 1, self.tab key_below_left = self.row + 1, self.col - 1, self.tab border_width_right = \ float(self.cell_attributes[key_below_left]["borderwidth_right"]) \ ...
[ "def", "get_below_left_key_rect", "(", "self", ")", ":", "key_left", "=", "self", ".", "row", ",", "self", ".", "col", "-", "1", ",", "self", ".", "tab", "key_below_left", "=", "self", ".", "row", "+", "1", ",", "self", ".", "col", "-", "1", ",", ...
Returns tuple key rect of below left cell
[ "Returns", "tuple", "key", "rect", "of", "below", "left", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1096-L1110
236,783
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
Cell.get_below_right_key_rect
def get_below_right_key_rect(self): """Returns tuple key rect of below right cell""" key_below_right = self.row + 1, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[self.key]["borderwidth_right"]) / 2.0 border_width_bottom = \ float(self...
python
def get_below_right_key_rect(self): """Returns tuple key rect of below right cell""" key_below_right = self.row + 1, self.col + 1, self.tab border_width_right = \ float(self.cell_attributes[self.key]["borderwidth_right"]) / 2.0 border_width_bottom = \ float(self...
[ "def", "get_below_right_key_rect", "(", "self", ")", ":", "key_below_right", "=", "self", ".", "row", "+", "1", ",", "self", ".", "col", "+", "1", ",", "self", ".", "tab", "border_width_right", "=", "float", "(", "self", ".", "cell_attributes", "[", "sel...
Returns tuple key rect of below right cell
[ "Returns", "tuple", "key", "rect", "of", "below", "right", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1112-L1124
236,784
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders._get_bottom_line_coordinates
def _get_bottom_line_coordinates(self): """Returns start and stop coordinates of bottom line""" rect_x, rect_y, rect_width, rect_height = self.rect start_point = rect_x, rect_y + rect_height end_point = rect_x + rect_width, rect_y + rect_height return start_point, end_point
python
def _get_bottom_line_coordinates(self): """Returns start and stop coordinates of bottom line""" rect_x, rect_y, rect_width, rect_height = self.rect start_point = rect_x, rect_y + rect_height end_point = rect_x + rect_width, rect_y + rect_height return start_point, end_point
[ "def", "_get_bottom_line_coordinates", "(", "self", ")", ":", "rect_x", ",", "rect_y", ",", "rect_width", ",", "rect_height", "=", "self", ".", "rect", "start_point", "=", "rect_x", ",", "rect_y", "+", "rect_height", "end_point", "=", "rect_x", "+", "rect_widt...
Returns start and stop coordinates of bottom line
[ "Returns", "start", "and", "stop", "coordinates", "of", "bottom", "line" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1151-L1159
236,785
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders._get_bottom_line_color
def _get_bottom_line_color(self): """Returns color rgb tuple of bottom line""" color = self.cell_attributes[self.key]["bordercolor_bottom"] return tuple(c / 255.0 for c in color_pack2rgb(color))
python
def _get_bottom_line_color(self): """Returns color rgb tuple of bottom line""" color = self.cell_attributes[self.key]["bordercolor_bottom"] return tuple(c / 255.0 for c in color_pack2rgb(color))
[ "def", "_get_bottom_line_color", "(", "self", ")", ":", "color", "=", "self", ".", "cell_attributes", "[", "self", ".", "key", "]", "[", "\"bordercolor_bottom\"", "]", "return", "tuple", "(", "c", "/", "255.0", "for", "c", "in", "color_pack2rgb", "(", "col...
Returns color rgb tuple of bottom line
[ "Returns", "color", "rgb", "tuple", "of", "bottom", "line" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1171-L1175
236,786
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders._get_right_line_color
def _get_right_line_color(self): """Returns color rgb tuple of right line""" color = self.cell_attributes[self.key]["bordercolor_right"] return tuple(c / 255.0 for c in color_pack2rgb(color))
python
def _get_right_line_color(self): """Returns color rgb tuple of right line""" color = self.cell_attributes[self.key]["bordercolor_right"] return tuple(c / 255.0 for c in color_pack2rgb(color))
[ "def", "_get_right_line_color", "(", "self", ")", ":", "color", "=", "self", ".", "cell_attributes", "[", "self", ".", "key", "]", "[", "\"bordercolor_right\"", "]", "return", "tuple", "(", "c", "/", "255.0", "for", "c", "in", "color_pack2rgb", "(", "color...
Returns color rgb tuple of right line
[ "Returns", "color", "rgb", "tuple", "of", "right", "line" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1177-L1181
236,787
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_b
def get_b(self): """Returns the bottom border of the cell""" start_point, end_point = self._get_bottom_line_coordinates() width = self._get_bottom_line_width() color = self._get_bottom_line_color() return CellBorder(start_point, end_point, width, color)
python
def get_b(self): """Returns the bottom border of the cell""" start_point, end_point = self._get_bottom_line_coordinates() width = self._get_bottom_line_width() color = self._get_bottom_line_color() return CellBorder(start_point, end_point, width, color)
[ "def", "get_b", "(", "self", ")", ":", "start_point", ",", "end_point", "=", "self", ".", "_get_bottom_line_coordinates", "(", ")", "width", "=", "self", ".", "_get_bottom_line_width", "(", ")", "color", "=", "self", ".", "_get_bottom_line_color", "(", ")", ...
Returns the bottom border of the cell
[ "Returns", "the", "bottom", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1193-L1200
236,788
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_r
def get_r(self): """Returns the right border of the cell""" start_point, end_point = self._get_right_line_coordinates() width = self._get_right_line_width() color = self._get_right_line_color() return CellBorder(start_point, end_point, width, color)
python
def get_r(self): """Returns the right border of the cell""" start_point, end_point = self._get_right_line_coordinates() width = self._get_right_line_width() color = self._get_right_line_color() return CellBorder(start_point, end_point, width, color)
[ "def", "get_r", "(", "self", ")", ":", "start_point", ",", "end_point", "=", "self", ".", "_get_right_line_coordinates", "(", ")", "width", "=", "self", ".", "_get_right_line_width", "(", ")", "color", "=", "self", ".", "_get_right_line_color", "(", ")", "re...
Returns the right border of the cell
[ "Returns", "the", "right", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1202-L1209
236,789
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_t
def get_t(self): """Returns the top border of the cell""" cell_above = CellBorders(self.cell_attributes, *self.cell.get_above_key_rect()) return cell_above.get_b()
python
def get_t(self): """Returns the top border of the cell""" cell_above = CellBorders(self.cell_attributes, *self.cell.get_above_key_rect()) return cell_above.get_b()
[ "def", "get_t", "(", "self", ")", ":", "cell_above", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_above_key_rect", "(", ")", ")", "return", "cell_above", ".", "get_b", "(", ")" ]
Returns the top border of the cell
[ "Returns", "the", "top", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1211-L1216
236,790
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_l
def get_l(self): """Returns the left border of the cell""" cell_left = CellBorders(self.cell_attributes, *self.cell.get_left_key_rect()) return cell_left.get_r()
python
def get_l(self): """Returns the left border of the cell""" cell_left = CellBorders(self.cell_attributes, *self.cell.get_left_key_rect()) return cell_left.get_r()
[ "def", "get_l", "(", "self", ")", ":", "cell_left", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_left_key_rect", "(", ")", ")", "return", "cell_left", ".", "get_r", "(", ")" ]
Returns the left border of the cell
[ "Returns", "the", "left", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1218-L1223
236,791
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_tl
def get_tl(self): """Returns the top left border of the cell""" cell_above_left = CellBorders(self.cell_attributes, *self.cell.get_above_left_key_rect()) return cell_above_left.get_r()
python
def get_tl(self): """Returns the top left border of the cell""" cell_above_left = CellBorders(self.cell_attributes, *self.cell.get_above_left_key_rect()) return cell_above_left.get_r()
[ "def", "get_tl", "(", "self", ")", ":", "cell_above_left", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_above_left_key_rect", "(", ")", ")", "return", "cell_above_left", ".", "get_r", "(", ")" ]
Returns the top left border of the cell
[ "Returns", "the", "top", "left", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1225-L1230
236,792
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_tr
def get_tr(self): """Returns the top right border of the cell""" cell_above = CellBorders(self.cell_attributes, *self.cell.get_above_key_rect()) return cell_above.get_r()
python
def get_tr(self): """Returns the top right border of the cell""" cell_above = CellBorders(self.cell_attributes, *self.cell.get_above_key_rect()) return cell_above.get_r()
[ "def", "get_tr", "(", "self", ")", ":", "cell_above", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_above_key_rect", "(", ")", ")", "return", "cell_above", ".", "get_r", "(", ")" ]
Returns the top right border of the cell
[ "Returns", "the", "top", "right", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1232-L1237
236,793
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_rt
def get_rt(self): """Returns the right top border of the cell""" cell_above_right = CellBorders(self.cell_attributes, *self.cell.get_above_right_key_rect()) return cell_above_right.get_b()
python
def get_rt(self): """Returns the right top border of the cell""" cell_above_right = CellBorders(self.cell_attributes, *self.cell.get_above_right_key_rect()) return cell_above_right.get_b()
[ "def", "get_rt", "(", "self", ")", ":", "cell_above_right", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_above_right_key_rect", "(", ")", ")", "return", "cell_above_right", ".", "get_b", "(", ")" ]
Returns the right top border of the cell
[ "Returns", "the", "right", "top", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1239-L1244
236,794
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_rb
def get_rb(self): """Returns the right bottom border of the cell""" cell_right = CellBorders(self.cell_attributes, *self.cell.get_right_key_rect()) return cell_right.get_b()
python
def get_rb(self): """Returns the right bottom border of the cell""" cell_right = CellBorders(self.cell_attributes, *self.cell.get_right_key_rect()) return cell_right.get_b()
[ "def", "get_rb", "(", "self", ")", ":", "cell_right", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_right_key_rect", "(", ")", ")", "return", "cell_right", ".", "get_b", "(", ")" ]
Returns the right bottom border of the cell
[ "Returns", "the", "right", "bottom", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1246-L1251
236,795
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_br
def get_br(self): """Returns the bottom right border of the cell""" cell_below = CellBorders(self.cell_attributes, *self.cell.get_below_key_rect()) return cell_below.get_r()
python
def get_br(self): """Returns the bottom right border of the cell""" cell_below = CellBorders(self.cell_attributes, *self.cell.get_below_key_rect()) return cell_below.get_r()
[ "def", "get_br", "(", "self", ")", ":", "cell_below", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_below_key_rect", "(", ")", ")", "return", "cell_below", ".", "get_r", "(", ")" ]
Returns the bottom right border of the cell
[ "Returns", "the", "bottom", "right", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1253-L1258
236,796
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_bl
def get_bl(self): """Returns the bottom left border of the cell""" cell_below_left = CellBorders(self.cell_attributes, *self.cell.get_below_left_key_rect()) return cell_below_left.get_r()
python
def get_bl(self): """Returns the bottom left border of the cell""" cell_below_left = CellBorders(self.cell_attributes, *self.cell.get_below_left_key_rect()) return cell_below_left.get_r()
[ "def", "get_bl", "(", "self", ")", ":", "cell_below_left", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_below_left_key_rect", "(", ")", ")", "return", "cell_below_left", ".", "get_r", "(", ")" ]
Returns the bottom left border of the cell
[ "Returns", "the", "bottom", "left", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1260-L1265
236,797
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_lb
def get_lb(self): """Returns the left bottom border of the cell""" cell_left = CellBorders(self.cell_attributes, *self.cell.get_left_key_rect()) return cell_left.get_b()
python
def get_lb(self): """Returns the left bottom border of the cell""" cell_left = CellBorders(self.cell_attributes, *self.cell.get_left_key_rect()) return cell_left.get_b()
[ "def", "get_lb", "(", "self", ")", ":", "cell_left", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_left_key_rect", "(", ")", ")", "return", "cell_left", ".", "get_b", "(", ")" ]
Returns the left bottom border of the cell
[ "Returns", "the", "left", "bottom", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1267-L1272
236,798
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.get_lt
def get_lt(self): """Returns the left top border of the cell""" cell_above_left = CellBorders(self.cell_attributes, *self.cell.get_above_left_key_rect()) return cell_above_left.get_b()
python
def get_lt(self): """Returns the left top border of the cell""" cell_above_left = CellBorders(self.cell_attributes, *self.cell.get_above_left_key_rect()) return cell_above_left.get_b()
[ "def", "get_lt", "(", "self", ")", ":", "cell_above_left", "=", "CellBorders", "(", "self", ".", "cell_attributes", ",", "*", "self", ".", "cell", ".", "get_above_left_key_rect", "(", ")", ")", "return", "cell_above_left", ".", "get_b", "(", ")" ]
Returns the left top border of the cell
[ "Returns", "the", "left", "top", "border", "of", "the", "cell" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1274-L1279
236,799
manns/pyspread
pyspread/src/lib/_grid_cairo_renderer.py
CellBorders.gen_all
def gen_all(self): """Generator of all borders""" borderfuncs = [ self.get_b, self.get_r, self.get_t, self.get_l, self.get_tl, self.get_tr, self.get_rt, self.get_rb, self.get_br, self.get_bl, self.get_lb, self.get_lt, ] for borderfunc in borderfuncs:...
python
def gen_all(self): """Generator of all borders""" borderfuncs = [ self.get_b, self.get_r, self.get_t, self.get_l, self.get_tl, self.get_tr, self.get_rt, self.get_rb, self.get_br, self.get_bl, self.get_lb, self.get_lt, ] for borderfunc in borderfuncs:...
[ "def", "gen_all", "(", "self", ")", ":", "borderfuncs", "=", "[", "self", ".", "get_b", ",", "self", ".", "get_r", ",", "self", ".", "get_t", ",", "self", ".", "get_l", ",", "self", ".", "get_tl", ",", "self", ".", "get_tr", ",", "self", ".", "ge...
Generator of all borders
[ "Generator", "of", "all", "borders" ]
0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0
https://github.com/manns/pyspread/blob/0e2fd44c2e0f06605efc3058c20a43a8c1f9e7e0/pyspread/src/lib/_grid_cairo_renderer.py#L1281-L1291