Converters#

class fretboardgtr.fretboards.converters.FretBoardToSVGConverter[source]#

Bases: object

Convert a FretboardLike object to a svgwrite object.

Convert it in order to export it to a specific format later.

__init__(fretboard)[source]#
Parameters:

fretboard (FretBoardLike) –

add_to_drawing(drawing, element)[source]#
Parameters:
  • drawing (Drawing) –

  • element (FretBoardElement) –

Return type:

Drawing

convert()[source]#
Return type:

Drawing

get_empty()[source]#

Create empty box and the object self.drawing.

Return type:

Drawing