Preferences/ConfigurationPages/TemplatesPage.py

changeset 564
b3d966393ba9
parent 13
1af94a91f439
child 791
9ec2ac20e54e
equal deleted inserted replaced
563:e35d2cda9a74 564:b3d966393ba9
23 ConfigurationPageBase.__init__(self) 23 ConfigurationPageBase.__init__(self)
24 self.setupUi(self) 24 self.setupUi(self)
25 self.setObjectName("TemplatesPage") 25 self.setObjectName("TemplatesPage")
26 26
27 # set initial values 27 # set initial values
28 self.templatesAutoOpenGroupsCheckBox.setChecked(\ 28 self.templatesAutoOpenGroupsCheckBox.setChecked(
29 Preferences.getTemplates("AutoOpenGroups")) 29 Preferences.getTemplates("AutoOpenGroups"))
30 self.templatesSeparatorCharEdit.setText(\ 30 self.templatesSeparatorCharEdit.setText(
31 Preferences.getTemplates("SeparatorChar")) 31 Preferences.getTemplates("SeparatorChar"))
32 if Preferences.getTemplates("SingleDialog"): 32 if Preferences.getTemplates("SingleDialog"):
33 self.templatesSingleDialogButton.setChecked(True) 33 self.templatesSingleDialogButton.setChecked(True)
34 else: 34 else:
35 self.templatesMultiDialogButton.setChecked(True) 35 self.templatesMultiDialogButton.setChecked(True)
36 self.templatesToolTipCheckBox.setChecked(\ 36 self.templatesToolTipCheckBox.setChecked(
37 Preferences.getTemplates("ShowTooltip")) 37 Preferences.getTemplates("ShowTooltip"))
38 38
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.

eric ide

mercurial