Preferences/ConfigurationPages/TemplatesPage.py

changeset 7
c679fb30c8f3
parent 6
52e8c820d0dd
child 12
1d8dd9706f46
equal deleted inserted replaced
6:52e8c820d0dd 7:c679fb30c8f3
39 def save(self): 39 def save(self):
40 """ 40 """
41 Public slot to save the Templates configuration. 41 Public slot to save the Templates configuration.
42 """ 42 """
43 Preferences.setTemplates("AutoOpenGroups", 43 Preferences.setTemplates("AutoOpenGroups",
44 int(self.templatesAutoOpenGroupsCheckBox.isChecked())) 44 self.templatesAutoOpenGroupsCheckBox.isChecked())
45 sepChar = self.templatesSeparatorCharEdit.text() 45 sepChar = self.templatesSeparatorCharEdit.text()
46 if sepChar: 46 if sepChar:
47 Preferences.setTemplates("SeparatorChar", sepChar) 47 Preferences.setTemplates("SeparatorChar", sepChar)
48 Preferences.setTemplates("SingleDialog", 48 Preferences.setTemplates("SingleDialog",
49 int(self.templatesSingleDialogButton.isChecked())) 49 self.templatesSingleDialogButton.isChecked())
50 Preferences.setTemplates("ShowTooltip", 50 Preferences.setTemplates("ShowTooltip",
51 int(self.templatesToolTipCheckBox.isChecked())) 51 self.templatesToolTipCheckBox.isChecked())
52 52
53 def create(dlg): 53 def create(dlg):
54 """ 54 """
55 Module function to create the configuration page. 55 Module function to create the configuration page.
56 56

eric ide

mercurial