コード例 #1
0
 def removeSoftTab(self):
     """ Remove a space-based tab """
     for i in range(self.settings.tabSize):
         self.cursor.left()
     operation = RemoveCharacterOperation(self.cursor, self.textStore)
     for i in range(self.settings.tabSize):
         operation.perform()
コード例 #2
0
 def performDoOperation(self):
     """ Perform the action """
     textLine = self.textStore.text[self.line]
     col = self.column
     self.removedCharacter = textLine[col]
     
     operation = RemoveCharacterOperation(self.cursor, self.textStore)
     operation.perform()
コード例 #3
0
 def removeHardTab(self):
     """ Remove a tab """
     self.cursor.left()
     operation = RemoveCharacterOperation(self.cursor, self.textStore)
     operation.perform()
コード例 #4
0
 def performUndoOperation(self):
     """ Undo the inserted text """
     operation = RemoveCharacterOperation(self.cursor, self.textStore)
     for character in self.textToInsert:
         operation.perform()