82 else: |
82 else: |
83 venvIndex = 0 |
83 venvIndex = 0 |
84 self.venvComboBox.setCurrentIndex(venvIndex) |
84 self.venvComboBox.setCurrentIndex(venvIndex) |
85 if self.project.debugProperties["DEBUGCLIENT"]: |
85 if self.project.debugProperties["DEBUGCLIENT"]: |
86 self.debugClientPicker.setText( |
86 self.debugClientPicker.setText( |
87 self.project.debugProperties["DEBUGCLIENT"]) |
87 self.project.debugProperties["DEBUGCLIENT"], |
|
88 toNative=False) |
88 else: |
89 else: |
89 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
90 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
90 "Python3"]: |
91 "Python3"]: |
91 debugClient = os.path.join( |
92 debugClient = os.path.join( |
92 getConfig('ericDir'), |
93 getConfig('ericDir'), |
93 "DebugClients", "Python", "DebugClient.py") |
94 "DebugClients", "Python", "DebugClient.py") |
94 else: |
95 else: |
95 debugClient = "" |
96 debugClient = "" |
96 self.debugClientPicker.setText(debugClient) |
97 self.debugClientPicker.setText(debugClient, toNative=False) |
97 self.debugEnvironmentOverrideCheckBox.setChecked( |
98 self.debugEnvironmentOverrideCheckBox.setChecked( |
98 self.project.debugProperties["ENVIRONMENTOVERRIDE"]) |
99 self.project.debugProperties["ENVIRONMENTOVERRIDE"]) |
99 self.debugEnvironmentEdit.setText( |
100 self.debugEnvironmentEdit.setText( |
100 self.project.debugProperties["ENVIRONMENTSTRING"]) |
101 self.project.debugProperties["ENVIRONMENTSTRING"]) |
101 self.remoteDebuggerGroup.setChecked( |
102 self.remoteDebuggerGroup.setChecked( |
139 """ |
140 """ |
140 self.project.debugProperties["VIRTUALENV"] = \ |
141 self.project.debugProperties["VIRTUALENV"] = \ |
141 self.venvComboBox.currentText() |
142 self.venvComboBox.currentText() |
142 |
143 |
143 self.project.debugProperties["DEBUGCLIENT"] = \ |
144 self.project.debugProperties["DEBUGCLIENT"] = \ |
144 self.debugClientPicker.text() |
145 self.debugClientPicker.text(toNative=False) |
145 if not self.project.debugProperties["DEBUGCLIENT"]: |
146 if not self.project.debugProperties["DEBUGCLIENT"]: |
146 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
147 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", |
147 "Python3"]: |
148 "Python3"]: |
148 debugClient = os.path.join( |
149 debugClient = os.path.join( |
149 getConfig('ericDir'), |
150 getConfig('ericDir'), |
182 |
183 |
183 def __saveHistories(self): |
184 def __saveHistories(self): |
184 """ |
185 """ |
185 Private method to save the path picker histories. |
186 Private method to save the path picker histories. |
186 """ |
187 """ |
187 debugClient = self.debugClientPicker.text() |
188 debugClient = self.debugClientPicker.text(toNative=False) |
188 debugClientsHistory = self.debugClientPicker.getPathItems() |
189 debugClientsHistory = self.debugClientPicker.getPathItems() |
189 if debugClient not in debugClientsHistory: |
190 if debugClient not in debugClientsHistory: |
190 debugClientsHistory.insert(0, debugClient) |
191 debugClientsHistory.insert(0, debugClient) |
191 Preferences.setProject("DebugClientsHistory", |
192 Preferences.setProject("DebugClientsHistory", |
192 debugClientsHistory) |
193 debugClientsHistory) |