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