Пример #1
0
    def read_blocks(self, parent):
        block_header = self._read_block_header()
        if block_header == '':
            return None
        obj = KicadObject.Instance(block_header)
        parent.AddNode(obj)

        attr = self._read_field()
        while attr != None:
            obj.AddAttribute(attr)
            attr = self._read_field()

        node = self.read_blocks(obj)
        while node:
            node = self.read_blocks(obj)

        self._skip_spaces()
        c = self.observe(1)
        if c == ')':
            self.read(1)

        return obj
Пример #2
0
 def __init__(self):
     super(KicadThickness, self).__init__('thickness')
     KicadObject._register(self.header, KicadThickness)
Пример #3
0
 def __init__(self):
     super(KicadFont, self).__init__('font')
     KicadObject._register(self.header, KicadFont)
Пример #4
0
 def __init__(self):
     super(KicadDrill, self).__init__('drill')
     KicadObject._register(self.header, KicadDrill)
Пример #5
0
 def __init__(self):
     super(KicadSize, self).__init__('size')
     KicadObject._register(self.header, KicadSize)
Пример #6
0
 def __init__(self):
     super(KicadWidth, self).__init__('width')
     KicadObject._register(self.header, KicadWidth)
Пример #7
0
 def __init__(self):
     super(KicadLayers, self).__init__('layers')
     KicadObject._register(self.header, KicadLayers)
Пример #8
0
 def __init__(self):
     super(KicadModule, self).__init__('module')
     KicadObject._register(self.header, KicadModule)
Пример #9
0
 def __init__(self):
     super(KicadStart, self).__init__('start')
     KicadObject._register(self.header, KicadStart)
Пример #10
0
 def __init__(self):
     super(KicadAt, self).__init__('at')
     KicadObject._register(self.header, KicadAt)
Пример #11
0
 def __init__(self):
     super(KicadFPCircle, self).__init__('fp_circle')
     KicadObject._register(self.header, KicadFPCircle)
Пример #12
0
 def __init__(self):
     super(KicadFPText, self).__init__('fp_text')
     KicadObject._register(self.header, KicadFPText)
Пример #13
0
 def __init__(self):
     super(KicadPad, self).__init__('pad')
     KicadObject._register(self.header, KicadPad)
Пример #14
0
 def __init__(self):
     super(KicadFPLine, self).__init__('fp_line')
     KicadObject._register(self.header, KicadFPLine)
Пример #15
0
 def __init__(self):
     super(KicadCenter, self).__init__('center')
     KicadObject._register(self.header, KicadCenter)
Пример #16
0
 def __init__(self):
     super(KicadEnd, self).__init__('end')
     KicadObject._register(self.header, KicadEnd)
Пример #17
0
 def __init__(self):
     self.filename = None
     self.onChanged = None
     self.parent = KicadObject('')