def onChange(self):
    HOLD_POINTS_GRAPH_COMMIT_SECS = 0.1
    if getattr(self, 'pendingSave', None):
        self.pendingSave.cancel()
    self.pendingSave = reactor.callLater(HOLD_POINTS_GRAPH_COMMIT_SECS, self.saveCurve)
def onChange(self):
    HOLD_POINTS_GRAPH_COMMIT_SECS = 0.1
    if getattr(self, 'pendingSave', None):
        self.pendingSave.cancel()
    self.pendingSave = reactor.callLater(HOLD_POINTS_GRAPH_COMMIT_SECS, self.saveCurve)