How to use the pcbdraw.mdrenderer.MdRenderer.get_block function in PcbDraw

To help you get started, we’ve selected a few PcbDraw examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github yaqwsx / PcbDraw / pcbdraw / mdrenderer.py View on Github external
def table(self, header, body):
    hrows = []
    while header:
      header, type, t = MdRenderer.get_block(header)
      if type == 'r':
        flags = {}
        cols = []
        while t:
          t, type2, t2 = MdRenderer.get_block(t)
          if type2 == 'f':
            fl, v = t2.split('=')
            flags[fl] = v
          elif type2 == 'c':
            cols.append(type('',(object,),{'flags':flags,'text':t2})())
        hrows.append(cols)
    brows = []
    while body:
      body, type, t = MdRenderer.get_block(body)
      if type == 'r':
        flags = {}

PcbDraw

Utility to produce nice looking drawings of KiCAD boards

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages