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 |