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