コード例 #1
0
    def __init__(self, name, colour, startCoordinate, width=630):
        LinacAbstractSection.__init__(self, name, colour, startCoordinate, width)
        self.shortName = "section" + str(self.id)
        self.subsections = list()

        self.id = LinacSection.id
        LinacSection.id += 1
コード例 #2
0
 def __init__(self, name, colour, startCoordinate, width):
     LinacAbstractSection.__init__(self, name, colour, startCoordinate, width)
     self.id = LinacSubsection.id
     LinacSubsection.id += 1
     self.shortName = "linacSubsection" + str(self.id)
コード例 #3
0
 def __init__(self, name, colour, startCoordinate, width):
     LinacAbstractSection.__init__(self, name, colour, startCoordinate,
                                   width)
     self.id = LinacSubsection.id
     LinacSubsection.id += 1
     self.shortName = "linacSubsection" + str(self.id)