Example #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)