Preferences/ConfigurationPages/Py3FlakesPage.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
9 9
10 from .ConfigurationPageBase import ConfigurationPageBase 10 from .ConfigurationPageBase import ConfigurationPageBase
11 from .Ui_Py3FlakesPage import Ui_Py3FlakesPage 11 from .Ui_Py3FlakesPage import Ui_Py3FlakesPage
12 12
13 import Preferences 13 import Preferences
14
14 15
15 class Py3FlakesPage(ConfigurationPageBase, Ui_Py3FlakesPage): 16 class Py3FlakesPage(ConfigurationPageBase, Ui_Py3FlakesPage):
16 """ 17 """
17 Class implementing the Python configuration page. 18 Class implementing the Python configuration page.
18 """ 19 """
32 33
33 def save(self): 34 def save(self):
34 """ 35 """
35 Public slot to save the Python configuration. 36 Public slot to save the Python configuration.
36 """ 37 """
37 Preferences.setFlakes("IncludeInSyntaxCheck", 38 Preferences.setFlakes("IncludeInSyntaxCheck",
38 self.includeCheckBox.isChecked()) 39 self.includeCheckBox.isChecked())
39 Preferences.setFlakes("IgnoreStarImportWarnings", 40 Preferences.setFlakes("IgnoreStarImportWarnings",
40 self.ignoreStarImportCheckBox.isChecked()) 41 self.ignoreStarImportCheckBox.isChecked())
41 42
43
42 def create(dlg): 44 def create(dlg):
43 """ 45 """
44 Module function to create the configuration page. 46 Module function to create the configuration page.
45 47
46 @param dlg reference to the configuration dialog 48 @param dlg reference to the configuration dialog

eric ide

mercurial