Lines Matching refs:self
28 def __init__(self, filePath) -> None:
29 self.filePath = filePath
30 self.lines = []
32 fp = open(self.filePath, 'r')
34 self.lines.append(line)
37 def saveAndClose(self):
38 s = ''.join(self.lines)
39 self.lines.clear()
40 fp = open(self.filePath, 'w')
44 def positionSearch(self, positionText, startLineNum = 0):
45 linesLen = len(self.lines)
47 if(positionText in self.lines[lineNum]):
51 def addItem(self, newText, positionInedx, rowNume):
60 for line in self.lines:
68 self.lines.insert(lineNum, newText+'\n')
73 def deleteLines(self, startLineIndex, endLineIndex):
75 self.lines.pop(startLineIndex)