10 from .ConfigurationPageBase import ConfigurationPageBase |
10 from .ConfigurationPageBase import ConfigurationPageBase |
11 from .Ui_PythonPage import Ui_PythonPage |
11 from .Ui_PythonPage import Ui_PythonPage |
12 |
12 |
13 import Preferences |
13 import Preferences |
14 from Utilities import supportedCodecs |
14 from Utilities import supportedCodecs |
|
15 |
15 |
16 |
16 class PythonPage(ConfigurationPageBase, Ui_PythonPage): |
17 class PythonPage(ConfigurationPageBase, Ui_PythonPage): |
17 """ |
18 """ |
18 Class implementing the Python configuration page. |
19 Class implementing the Python configuration page. |
19 """ |
20 """ |
54 enc = self.ioEncodingComboBox.currentText() |
55 enc = self.ioEncodingComboBox.currentText() |
55 if not enc: |
56 if not enc: |
56 enc = "utf-8" |
57 enc = "utf-8" |
57 Preferences.setSystem("IOEncoding", enc) |
58 Preferences.setSystem("IOEncoding", enc) |
58 |
59 |
59 Preferences.setDebugger("PythonExtensions", |
60 Preferences.setDebugger("PythonExtensions", |
60 self.py2ExtensionsEdit.text()) |
61 self.py2ExtensionsEdit.text()) |
61 Preferences.setDebugger("Python3Extensions", |
62 Preferences.setDebugger("Python3Extensions", |
62 self.py3ExtensionsEdit.text()) |
63 self.py3ExtensionsEdit.text()) |
63 |
64 |
|
65 |
64 def create(dlg): |
66 def create(dlg): |
65 """ |
67 """ |
66 Module function to create the configuration page. |
68 Module function to create the configuration page. |
67 |
69 |
68 @param dlg reference to the configuration dialog |
70 @param dlg reference to the configuration dialog |