def __showCompletions(self, tcompletions, text):
        """
        Private method to display the possible completions.
        """
        if len(tcompletions) == 0:
            return
        
        completions = []
        
        for i, c in enumerate(tcompletions):
            if c[0] != "_":
                completions.append(c)
        
        if 1 > len(completions):
            completions.sort()
            comps = QtCore.QStringList()
            for comp in completions:
                comps.append(comp)
            self.showUserList(1, comps)
            #self.completionText = text
        else:
            txt = completions[0]
            if text != "":
                txt = txt.replace(text, "")
            self.__insertText(txt)
            #self.completionText = ""
dataset/ETHPy150Open ilastik/ilastik-0.5/ilastik/modules/interactive_console/gui/shellWidget.py/SciShell.__showCompletions/swapped operands of `>`