Project/DebuggerPropertiesDialog.py

changeset 6378
26cd487e6b56
parent 6352
4bdc6503df81
child 6503
e617c58807e8
equal deleted inserted replaced
6377:ae6ae4e3ec1f 6378:26cd487e6b56
8 """ 8 """
9 9
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 import sys
14 13
15 from PyQt5.QtCore import pyqtSlot 14 from PyQt5.QtCore import pyqtSlot
16 from PyQt5.QtWidgets import QDialog, QComboBox 15 from PyQt5.QtWidgets import QDialog, QComboBox
17 16
18 from E5Gui.E5Completers import E5DirCompleter 17 from E5Gui.E5Completers import E5DirCompleter
136 """ 135 """
137 Public method to store the entered/modified data. 136 Public method to store the entered/modified data.
138 """ 137 """
139 self.project.debugProperties["VIRTUALENV"] = \ 138 self.project.debugProperties["VIRTUALENV"] = \
140 self.venvComboBox.currentText() 139 self.venvComboBox.currentText()
141 if not self.project.debugProperties["INTERPRETER"]:
142 if self.project.pdata["PROGLANGUAGE"] in \
143 ["Python", "Python2", "Python3"]:
144 self.project.debugProperties["INTERPRETER"] = sys.executable
145 elif self.project.pdata["PROGLANGUAGE"] == "Ruby":
146 self.project.debugProperties["INTERPRETER"] = "/usr/bin/ruby"
147 140
148 self.project.debugProperties["DEBUGCLIENT"] = \ 141 self.project.debugProperties["DEBUGCLIENT"] = \
149 self.debugClientPicker.text() 142 self.debugClientPicker.text()
150 if not self.project.debugProperties["DEBUGCLIENT"]: 143 if not self.project.debugProperties["DEBUGCLIENT"]:
151 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2", 144 if self.project.pdata["PROGLANGUAGE"] in ["Python", "Python2",
201 """ 194 """
202 Private slot to clear the debug clients history. 195 Private slot to clear the debug clients history.
203 """ 196 """
204 self.__clearHistory(self.debugClientPicker) 197 self.__clearHistory(self.debugClientPicker)
205 198
206 @pyqtSlot()
207 def on_interpreterClearHistoryButton_clicked(self):
208 """
209 Private slot to clear the interpreter history.
210 """
211 self.__clearHistory(self.interpreterPicker)
212
213 def __clearHistory(self, picker): 199 def __clearHistory(self, picker):
214 """ 200 """
215 Private method to clear a path picker history. 201 Private method to clear a path picker history.
216 202
217 @param picker reference to the path picker 203 @param picker reference to the path picker

eric ide

mercurial