def __completionListSelected(self, id, txt):
        """
        Private slot to handle the selection from the completion list.
        
        @param id the ID of the user list (should be 1) (integer)
        @param txt the selected text (QString)
        """

        # Remove already written characters
        line, col = self.__getEndPos()
        self.setCursorPosition(line,col)
        buf = unicode(self.text(line))
        ind = len(buf) - buf.rfind(".") - 1

        if id == 1:
            txt = unicode(txt[ind:])
            #if self.completionText != "":
            #   txt = txt.replace(self.completionText, "")
            self.__insertText(txt)
            #self.completionText = ""


    # Drag and Drop support
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/interactive_console/gui/shellWidget.py/SciShell.__completionListSelected/original