def on_sourceview_motion_notify_event_codebox(self, text_view, event): """Update the cursor image if the pointer moved""" if not self.dad.user_active: return False text_view.set_editable(not self.dad.is_curr_node_read_only()) x, y = text_view.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, int(event.x), int(event.y)) support.sourceview_cursor_and_tooltips_handler(self.dad, text_view, x, y) return False