QScintilla/QsciScintillaCompat.py

changeset 944
1b59c4ba121e
parent 942
1d2a6b8509c6
child 945
8cd4d08fa9f6
equal deleted inserted replaced
943:1246bd8280a6 944:1b59c4ba121e
1105 if self.foldHeaderAt(line) and not self.foldExpandedAt(line): 1105 if self.foldHeaderAt(line) and not self.foldExpandedAt(line):
1106 folds.append(line) 1106 folds.append(line)
1107 line += 1 1107 line += 1
1108 return folds 1108 return folds
1109 1109
1110 ## if "setContractedFolds" not in QsciScintilla.__dict__: 1110 if "setContractedFolds" not in QsciScintilla.__dict__:
1111 def setContractedFolds(self, folds): 1111 def setContractedFolds(self, folds):
1112 """ 1112 """
1113 Public method to set a list of line numbers of collapsed folds. 1113 Public method to set a list of line numbers of collapsed folds.
1114 1114
1115 @param folds list of line numbers of folded lines (list of integer) 1115 @param folds list of line numbers of folded lines (list of integer)
1116 """ 1116 """
1117 for line in folds: 1117 for line in folds:
1118 self.foldLine(line) 1118 self.foldLine(line)
1119 1119
1120 ## ######################################################################### 1120 ## #########################################################################
1121 ## # methods below have been added to QScintilla starting with version 2.x 1121 ## # methods below have been added to QScintilla starting with version 2.x
1122 ## ######################################################################### 1122 ## #########################################################################
1123 ## 1123 ##

eric ide

mercurial