def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def tag(self, g):
        self.g = g
        self.g.beginPath()
        self.g.fillText("%d, %d"%(self.x, self.y),self.x, self.y)
        self.g.stroke()