'Set the current editorstack to be used by the IntrospectionManager
instance'

def set_editorstack_for_introspection(self):

    editorstack = self.__get_focus_editorstack()
    if (editorstack is not None):
        self.introspector.set_editor_widget(editorstack)
        try:
            self.introspector.send_to_help.disconnect()
            self.introspector.edit_goto.disconnect()
        except TypeError:
            pass
        self.introspector.send_to_help.connect(editorstack.send_to_help)
        self.introspector.edit_goto.connect((lambda fname, lineno, name: editorstack.edit_goto.emit(fname, lineno, name)))
