pyspread.interfaces package

Submodules

pyspread.interfaces.pys module

This file contains interfaces to the native pys file format.

PysReader and PysWriter classed are structured into the following sections:
  • shape

  • code

  • attributes

  • row_heights

  • col_widths

  • macros

Provides

class pyspread.interfaces.pys.PysReader(pys_file, code_array)[source]

Bases: object

Reads pys v2.0 file into a code_array

Parameters:
  • pys_file (BinaryIO) – The pys or pysu file to be read

  • code_array (CodeArray) – Target code_array

version_handler()[source]

Chooses method`_10` of method if version < 2.0

Parameters:

method (Callable) – Method to be replaced in case of old pys file version

Return type:

Callable

class pyspread.interfaces.pys.PysWriter(code_array)[source]

Bases: object

Interface between code_array and pys file data

Iterating over it yields pys file lines

Parameters:

code_array (CodeArray) – The code_array object data structure

pyspread.interfaces.pys.qt52qt6_fontweights(qt5_weight)[source]

Approximates the mapping from Qt5 to Qt6 font weight

pyspread.interfaces.pys.qt62qt5_fontweights(qt6_weight)[source]

Approximates the mapping from Qt6 to Qt5 font weight

pyspread.interfaces.pys.wxcolor2rgb(wxcolor)[source]

Returns red, green, blue for given wxPython binary color value

Parameters:

wxcolor (int) – Color value from wx.Color

Return type:

Tuple[int, int, int]

Module contents