def METHOD_NAME(self, ev):
    if self.app.fraction > 0.001:
        t0 = time.time()
        self.draw()
        t1 = time.time()
        last = t1 - t0
        delay = last / self.app.fraction
        self.timer.Start(int(delay * 1000), True)
    else:
        self.draw()