def move_to(self, x, y): VT100.move_to(self, x, y) if not self.window: return if self.y != self.last_y: self.window.change( (0, self.last_y * self.lineheight), (self.width * self.charwidth, (self.last_y + 1) * self.lineheight) ) self.last_x = self.x self.last_y = y self.window.change((0, self.y * self.lineheight), (self.width * self.charwidth, (self.y + 1) * self.lineheight))
def move_to(self, x, y): VT100.move_to(self, x, y) if not self.window: return if self.y != self.last_y: self.window.change((0, self.last_y * self.lineheight), (self.width * self.charwidth, (self.last_y + 1) * self.lineheight)) self.last_x = self.x self.last_y = y self.window.change( (0, self.y * self.lineheight), (self.width * self.charwidth, (self.y + 1) * self.lineheight))
def __init__(self): VT100.__init__(self) self.window = None self.last_x = -1 self.last_y = -1
def send(self, str): VT100.send(self, str)