QScintilla/Editor.py

changeset 342
360c4eb76d6c
parent 253
3ccdf551bde7
child 404
44a541bea034
--- a/QScintilla/Editor.py	Thu Jun 10 20:11:25 2010 +0200
+++ b/QScintilla/Editor.py	Sat Jun 12 15:24:53 2010 +0200
@@ -3243,18 +3243,16 @@
                 folding = QsciScintilla.FoldStyle(folding)
             except AttributeError:
                 pass
-            try:
-                self.setFolding(folding, self.__foldMargin)
-            except TypeError:
-                self.setFolding(folding)
-            self.setFoldMarginColors(Preferences.getEditorColour("FoldmarginBackground"), 
-                                     Preferences.getEditorColour("FoldmarginBackground"))
+            self.setFolding(folding, self.__foldMargin)
+            self.setFoldMarginColors(
+                Preferences.getEditorColour("FoldmarginBackground"), 
+                Preferences.getEditorColour("FoldmarginBackground"))
+            self.setFoldMarkersColors(
+                Preferences.getEditorColour("FoldMarkersForeground"),
+                Preferences.getEditorColour("FoldMarkersBackground"))
         else:
             self.setMarginWidth(self.__foldMargin, 0)
-            try:
-                self.setFolding(QsciScintilla.NoFoldStyle, self.__foldMargin)
-            except TypeError:
-                self.setFolding(QsciScintilla.NoFoldStyle)
+            self.setFolding(QsciScintilla.NoFoldStyle, self.__foldMargin)
         
     def __setTextDisplay(self):
         """

eric ide

mercurial