diff -r 8680c2333546 -r 8c7970520632 tuikit/widgets/textbox.py --- a/tuikit/widgets/textbox.py Mon Feb 16 21:17:43 2015 +0100 +++ b/tuikit/widgets/textbox.py Sat Feb 21 12:01:57 2015 +0100 @@ -84,11 +84,11 @@ self.move_right() return True - def on_mousedown(self, ev): - y = ev.wy - x = min(ev.wx, len(self._lines[y])) + def mousedown_event(self, ev): + y = ev.pos.y + x = min(ev.pos.x, len(self._lines[y])) self._cursor.update(x=x, y=y) - self.redraw() + #self.redraw() def on_mousewheel(self, ev): if ev.button == 4: