Esempio n. 1
0
 def CreateElement(self, x, y, x2 = 0, y2 = 0):
     ne = Element(x, y, x2, y2)
     ne.x = x
     ne.y = y
     ne.x2 = x2
     ne.y2 = y2
     return ne
Esempio n. 2
0
 def CreateElement(self, x, y, x2, y2):
     ne = Element(x, y, x2, y2)
     ne.pattern = self
     ne.x = x
     ne.y = y
     ne.x2 = x2
     ne.y2 = y2
     self.special = 'wire'
     ne.name = 'wire'
     d = self.GetDrawlist(self.cur_options)
     return ne