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

def table::editor::split_phrase (   self  ) 

Splite current phrase into two phrase

Definition at line 223 of file table.py.

00223                            :
        '''Splite current phrase into two phrase'''
        _head = u''
        _end = u''
        try:
            _head = self._strings[self._cursor[0]][:self._cursor[1]]
            _end = self._strings[self._cursor[0]][self._cursor[1]:]
            self._strings.pop(self._cursor[0])
            self._strings.insert(self._cursor[0],_head)
            self._strings.insert(self._cursor[0]+1,_end)
            self._cursor[0] +=1
            self._cursor[1] = 0
        except:
            pass
    
    def remove_before_string (self):


Generated by  Doxygen 1.6.0   Back to index