def load(self, filename):
    self.points[:] = []
    for line in open(filename):
        (x, y) = line.split()
        self.points.append((float(x), ast.literal_eval(y)))
    self.points.sort()
    dispatcher.send('points changed', sender=self)
def load(self, filename):
    self.points[:] = []
    for line in open(filename):
        (x, y) = line.split()
        self.points.append((float(x), ast.literal_eval(y)))
    self.points.sort()
    dispatcher.send('points changed', sender=self)