def _on_linenumber_move(self, event):
        try:
            text_index = self.dte.index("@%s,%s" % (event.x, event.y))
            self.dte.tag_remove("sel", "1.0", "end") 
            if self.dte.compare(text_index, ">", "click"):
                self.dte.tag_add("sel", "click", "%s lineend+1c" % text_index)
            else:
                self.dte.tag_add("sel", "%s linestart" % text_index, "click lineend+1c")
            self.dte.mark_set("insert", "%s lineend" % text_index)
        except Exception, e:
            print "drat:", e
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/editor/editor_page.py/EditorPage._on_linenumber_move/original