36 |
36 |
37 def setEnabled(self, enable): |
37 def setEnabled(self, enable): |
38 """ |
38 """ |
39 Public slot to set the enabled state. |
39 Public slot to set the enabled state. |
40 |
40 |
41 @param enabled flag indicating the new state (boolean) |
41 @param enable flag indicating the new enabled state (boolean) |
42 """ |
42 """ |
43 if enable: |
43 if enable: |
44 if not self.enabled: |
44 if not self.enabled: |
45 self.editor.SCN_CHARADDED.connect(self.charAdded) |
45 self.editor.SCN_CHARADDED.connect(self.charAdded) |
46 else: |
46 else: |