33 def initProperties(self): |
35 def initProperties(self): |
34 """ |
36 """ |
35 Public slot to initialize the properties. |
37 Public slot to initialize the properties. |
36 """ |
38 """ |
37 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
39 self.setFoldCompact(Preferences.getEditor("AllFoldCompact")) |
38 try: |
40 with contextlib.suppress(AttributeError): |
39 self.setInitialSpaces( |
41 self.setInitialSpaces( |
40 Preferences.getEditor("PropertiesInitialSpaces")) |
42 Preferences.getEditor("PropertiesInitialSpaces")) |
41 except AttributeError: |
|
42 pass |
|
43 |
43 |
44 def isCommentStyle(self, style): |
44 def isCommentStyle(self, style): |
45 """ |
45 """ |
46 Public method to check, if a style is a comment style. |
46 Public method to check, if a style is a comment style. |
47 |
47 |