Beispiel #1
0
    def refresh(self, no_waves):

        self.no_waves = no_waves
        self.pic_height = no_waves * (self.waveheight + 5)
        self.pic_width = self.currentX + 150
        self.wave_list = [{"values": [], "position": (5, 1 + (self.waveheight + 5) * i)} for i in range(no_waves)]
        SvgDraw.refresh(self, self.pic_width, self.pic_height)
Beispiel #2
0
 def __init__(self, fileObject, picWidth, picHeight, type):
     SvgDraw.__init__(self, fileObject, picWidth, picHeight)
     self.period = 80
     self.waveheight = 50
     self.height = 40
     self.distance = self.period / 4
     self.type = type
     self.pic_height = picHeight
     self.pic_width = picWidth
     self.no_waves = 1
     self.values = []
     self.wave_list = [{"values": [], "position": (0, 0)}]