(self, item=None)
Perform the item selected action.
Perform the item selected action.
Perform the item selected action .
def item_selected(self, item=None):
        """Perform the item selected action."""
        if item is None:
            item = self.currentItem()

        if item is not None and self.completion_position is not None:
            self.textedit.insert_completion(item.data(Qt.UserRole),
                                            self.completion_position)
        self.hide()
def item_selected ( self , item = None ) : if item is None : item = self . currentItem ( ) if item is not None and self . completion_position is not None : self . textedit . insert_completion ( item . data ( Qt . UserRole ) , self . completion_position ) self . hide ( )