32 |
32 |
33 self.interpreterCompleter = E5FileCompleter(self.interpreterEdit) |
33 self.interpreterCompleter = E5FileCompleter(self.interpreterEdit) |
34 self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) |
34 self.debugClientCompleter = E5FileCompleter(self.debugClientEdit) |
35 |
35 |
36 # set initial values |
36 # set initial values |
37 self.interpreterEdit.setText(\ |
37 self.interpreterEdit.setText( |
38 Preferences.getDebugger("PythonInterpreter")) |
38 Preferences.getDebugger("PythonInterpreter")) |
39 dct = Preferences.getDebugger("DebugClientType") |
39 dct = Preferences.getDebugger("DebugClientType") |
40 if dct == "standard": |
40 if dct == "standard": |
41 self.standardButton.setChecked(True) |
41 self.standardButton.setChecked(True) |
42 elif dct == "threaded": |
42 elif dct == "threaded": |
43 self.threadedButton.setChecked(True) |
43 self.threadedButton.setChecked(True) |
44 else: |
44 else: |
45 self.customButton.setChecked(True) |
45 self.customButton.setChecked(True) |
46 self.debugClientEdit.setText(\ |
46 self.debugClientEdit.setText( |
47 Preferences.getDebugger("DebugClient")) |
47 Preferences.getDebugger("DebugClient")) |
48 self.pyRedirectCheckBox.setChecked(\ |
48 self.pyRedirectCheckBox.setChecked( |
49 Preferences.getDebugger("PythonRedirect")) |
49 Preferences.getDebugger("PythonRedirect")) |
50 self.pyNoEncodingCheckBox.setChecked(\ |
50 self.pyNoEncodingCheckBox.setChecked( |
51 Preferences.getDebugger("PythonNoEncoding")) |
51 Preferences.getDebugger("PythonNoEncoding")) |
52 self.sourceExtensionsEdit.setText( |
52 self.sourceExtensionsEdit.setText( |
53 Preferences.getDebugger("PythonExtensions")) |
53 Preferences.getDebugger("PythonExtensions")) |
54 |
54 |
55 def save(self): |
55 def save(self): |
77 @pyqtSlot() |
77 @pyqtSlot() |
78 def on_interpreterButton_clicked(self): |
78 def on_interpreterButton_clicked(self): |
79 """ |
79 """ |
80 Private slot to handle the Python interpreter selection. |
80 Private slot to handle the Python interpreter selection. |
81 """ |
81 """ |
82 file = QFileDialog.getOpenFileName(\ |
82 file = QFileDialog.getOpenFileName( |
83 self, |
83 self, |
84 self.trUtf8("Select Python interpreter for Debug Client"), |
84 self.trUtf8("Select Python interpreter for Debug Client"), |
85 self.interpreterEdit.text(), |
85 self.interpreterEdit.text(), |
86 "") |
86 "") |
87 |
87 |
88 if file: |
88 if file: |
89 self.interpreterEdit.setText(\ |
89 self.interpreterEdit.setText( |
90 Utilities.toNativeSeparators(file)) |
90 Utilities.toNativeSeparators(file)) |
91 |
91 |
92 @pyqtSlot() |
92 @pyqtSlot() |
93 def on_debugClientButton_clicked(self): |
93 def on_debugClientButton_clicked(self): |
94 """ |
94 """ |
95 Private slot to handle the Debug Client selection. |
95 Private slot to handle the Debug Client selection. |
96 """ |
96 """ |
97 file = QFileDialog.getOpenFileName(\ |
97 file = QFileDialog.getOpenFileName( |
98 None, |
98 None, |
99 self.trUtf8("Select Debug Client"), |
99 self.trUtf8("Select Debug Client"), |
100 self.debugClientEdit.text(), |
100 self.debugClientEdit.text(), |
101 self.trUtf8("Python Files (*.py *.py2)")) |
101 self.trUtf8("Python Files (*.py *.py2)")) |
102 |
102 |
103 if file: |
103 if file: |
104 self.debugClientEdit.setText(\ |
104 self.debugClientEdit.setText( |
105 Utilities.toNativeSeparators(file)) |
105 Utilities.toNativeSeparators(file)) |
106 |
106 |
107 def create(dlg): |
107 def create(dlg): |
108 """ |
108 """ |
109 Module function to create the configuration page. |
109 Module function to create the configuration page. |