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.customPyCheckBox.setChecked(\ |
37 self.customPyCheckBox.setChecked( |
38 Preferences.getDebugger("CustomPython3Interpreter")) |
38 Preferences.getDebugger("CustomPython3Interpreter")) |
39 self.interpreterEdit.setText(\ |
39 self.interpreterEdit.setText( |
40 Preferences.getDebugger("Python3Interpreter")) |
40 Preferences.getDebugger("Python3Interpreter")) |
41 dct = Preferences.getDebugger("DebugClientType3") |
41 dct = Preferences.getDebugger("DebugClientType3") |
42 if dct == "standard": |
42 if dct == "standard": |
43 self.standardButton.setChecked(True) |
43 self.standardButton.setChecked(True) |
44 elif dct == "threaded": |
44 elif dct == "threaded": |
81 @pyqtSlot() |
81 @pyqtSlot() |
82 def on_interpreterButton_clicked(self): |
82 def on_interpreterButton_clicked(self): |
83 """ |
83 """ |
84 Private slot to handle the Python interpreter selection. |
84 Private slot to handle the Python interpreter selection. |
85 """ |
85 """ |
86 file = QFileDialog.getOpenFileName(\ |
86 file = QFileDialog.getOpenFileName( |
87 self, |
87 self, |
88 self.trUtf8("Select Python interpreter for Debug Client"), |
88 self.trUtf8("Select Python interpreter for Debug Client"), |
89 self.interpreterEdit.text(), |
89 self.interpreterEdit.text(), |
90 "") |
90 "") |
91 |
91 |
92 if file: |
92 if file: |
93 self.interpreterEdit.setText(\ |
93 self.interpreterEdit.setText( |
94 Utilities.toNativeSeparators(file)) |
94 Utilities.toNativeSeparators(file)) |
95 |
95 |
96 @pyqtSlot() |
96 @pyqtSlot() |
97 def on_debugClientButton_clicked(self): |
97 def on_debugClientButton_clicked(self): |
98 """ |
98 """ |
99 Private slot to handle the Debug Client selection. |
99 Private slot to handle the Debug Client selection. |
100 """ |
100 """ |
101 file = QFileDialog.getOpenFileName(\ |
101 file = QFileDialog.getOpenFileName( |
102 None, |
102 None, |
103 self.trUtf8("Select Debug Client"), |
103 self.trUtf8("Select Debug Client"), |
104 self.debugClientEdit.text(), |
104 self.debugClientEdit.text(), |
105 self.trUtf8("Python Files (*.py *.py3)")) |
105 self.trUtf8("Python Files (*.py *.py3)")) |
106 |
106 |
107 if file: |
107 if file: |
108 self.debugClientEdit.setText(\ |
108 self.debugClientEdit.setText( |
109 Utilities.toNativeSeparators(file)) |
109 Utilities.toNativeSeparators(file)) |
110 |
110 |
111 def create(dlg): |
111 def create(dlg): |
112 """ |
112 """ |
113 Module function to create the configuration page. |
113 Module function to create the configuration page. |