43 |
45 |
44 def initProperties(self): |
46 def initProperties(self): |
45 """ |
47 """ |
46 Public slot to initialize the properties. |
48 Public slot to initialize the properties. |
47 """ |
49 """ |
48 try: |
50 with contextlib.suppress(AttributeError): |
49 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
51 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
50 except AttributeError: |
52 with contextlib.suppress(AttributeError): |
51 pass |
|
52 try: |
|
53 self.setFoldComments(Preferences.getEditor("TclFoldComment")) |
53 self.setFoldComments(Preferences.getEditor("TclFoldComment")) |
54 except AttributeError: |
|
55 pass |
|
56 |
54 |
57 def isCommentStyle(self, style): |
55 def isCommentStyle(self, style): |
58 """ |
56 """ |
59 Public method to check, if a style is a comment style. |
57 Public method to check, if a style is a comment style. |
60 |
58 |