Preferences/ConfigurationPages/DebuggerPython3Page.py

changeset 882
34b86be88bf0
parent 880
52ed20236a1c
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
881:ff23d907f87b 882:34b86be88bf0
6 """ 6 """
7 Module implementing the Debugger Python3 configuration page. 7 Module implementing the Debugger Python3 configuration page.
8 """ 8 """
9 9
10 from PyQt4.QtCore import pyqtSlot 10 from PyQt4.QtCore import pyqtSlot
11 from PyQt4.QtGui import QFileDialog
12 11
13 from E5Gui.E5Completers import E5FileCompleter 12 from E5Gui.E5Completers import E5FileCompleter
13 from E5Gui import E5FileDialog
14 14
15 from .ConfigurationPageBase import ConfigurationPageBase 15 from .ConfigurationPageBase import ConfigurationPageBase
16 from .Ui_DebuggerPython3Page import Ui_DebuggerPython3Page 16 from .Ui_DebuggerPython3Page import Ui_DebuggerPython3Page
17 17
18 import Preferences 18 import Preferences
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 = E5FileDialog.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 QFileDialog.DontUseNativeDialog)
92 91
93 if file: 92 if file:
94 self.interpreterEdit.setText( 93 self.interpreterEdit.setText(
95 Utilities.toNativeSeparators(file)) 94 Utilities.toNativeSeparators(file))
96 95
97 @pyqtSlot() 96 @pyqtSlot()
98 def on_debugClientButton_clicked(self): 97 def on_debugClientButton_clicked(self):
99 """ 98 """
100 Private slot to handle the Debug Client selection. 99 Private slot to handle the Debug Client selection.
101 """ 100 """
102 file = QFileDialog.getOpenFileName( 101 file = E5FileDialog.getOpenFileName(
103 None, 102 None,
104 self.trUtf8("Select Debug Client"), 103 self.trUtf8("Select Debug Client"),
105 self.debugClientEdit.text(), 104 self.debugClientEdit.text(),
106 self.trUtf8("Python Files (*.py *.py3)"), 105 self.trUtf8("Python Files (*.py *.py3)"))
107 QFileDialog.DontUseNativeDialog)
108 106
109 if file: 107 if file:
110 self.debugClientEdit.setText( 108 self.debugClientEdit.setText(
111 Utilities.toNativeSeparators(file)) 109 Utilities.toNativeSeparators(file))
112 110

eric ide

mercurial