Logo Search packages:      
Sourcecode: ibus-table version File versions  Download package

def table::editor::alt_number (   self,
  index 
)

Remove the candidates in Lookup Table from user_db index should start from 0

Definition at line 684 of file table.py.

00684                                :
        '''Remove the candidates in Lookup Table from user_db index should start from 0'''
        cps = self._lookup_table.get_current_page_start()
        pos = cps + index
        if  len (self._candidates[0]) > pos:
            # this index is valid
            can = self._candidates[0][pos]
            if can[-2] < 0:
                # freq of this candidate is -1, means this a user phrase
                self.db.remove_phrase (can)
                # make update_candidates do sql enquiry
                self._chars[2].pop()
                self.update_candidates ()
            return True
        else:
            return False

    def get_cursor_pos (self):


Generated by  Doxygen 1.6.0   Back to index