(self, item=None)
return self.check_can_complete(filter_text, current_word)
Check if the selection is up to date.
Check if the selection is up to date.
Check if the selection is up to date .
def is_up_to_date(self, item=None):
        """
        Check if the selection is up to date.
        """
        if self.is_empty():
            return False
        if not self.is_position_correct():
            return False
        if item is None:
            item = self.currentItem()
        current_word = self.textedit.get_current_word(completion=True)
        completion = item.data(Qt.UserRole)
        filter_text = completion['text']
        return self.check_can_complete(filter_text, current_word)
def is_up_to_date ( self , item = None ) : if self . is_empty ( ) : return False if not self . is_position_correct ( ) : return False if item is None : item = self . currentItem ( ) current_word = self . textedit . get_current_word ( completion = True ) completion = item . data ( Qt . UserRole ) filter_text = completion [ 'text' ] return self . check_can_complete ( filter_text , current_word )