eric6/Preferences/ConfigurationPages/PythonPage.py

changeset 7635
0cdead130a81
parent 7360
9190402e4505
child 7705
90a9aefd4253
equal deleted inserted replaced
7634:8c3d033e5044 7635:0cdead130a81
39 index = self.ioEncodingComboBox.findText( 39 index = self.ioEncodingComboBox.findText(
40 Preferences.getSystem("IOEncoding")) 40 Preferences.getSystem("IOEncoding"))
41 self.ioEncodingComboBox.setCurrentIndex(index) 41 self.ioEncodingComboBox.setCurrentIndex(index)
42 42
43 # these are the same as in the debugger pages 43 # these are the same as in the debugger pages
44 self.py2ExtensionsEdit.setText(
45 Preferences.getDebugger("PythonExtensions"))
46 self.py3ExtensionsEdit.setText( 44 self.py3ExtensionsEdit.setText(
47 Preferences.getDebugger("Python3Extensions")) 45 Preferences.getDebugger("Python3Extensions"))
48 46
49 self.py2EnvironmentEdit.setText(
50 Preferences.getDebugger("Python2VirtualEnv"))
51 self.py3EnvironmentEdit.setText( 47 self.py3EnvironmentEdit.setText(
52 Preferences.getDebugger("Python3VirtualEnv")) 48 Preferences.getDebugger("Python3VirtualEnv"))
53 49
54 def save(self): 50 def save(self):
55 """ 51 """
64 if not enc: 60 if not enc:
65 enc = "utf-8" 61 enc = "utf-8"
66 Preferences.setSystem("IOEncoding", enc) 62 Preferences.setSystem("IOEncoding", enc)
67 63
68 Preferences.setDebugger( 64 Preferences.setDebugger(
69 "PythonExtensions",
70 self.py2ExtensionsEdit.text())
71 Preferences.setDebugger(
72 "Python3Extensions", 65 "Python3Extensions",
73 self.py3ExtensionsEdit.text()) 66 self.py3ExtensionsEdit.text())
74 67
75 @pyqtSlot() 68 @pyqtSlot()
76 def on_refreshButton_clicked(self): 69 def on_refreshButton_clicked(self):
77 """ 70 """
78 Private slot handling a click of the refresh button. 71 Private slot handling a click of the refresh button.
79 """ 72 """
80 self.py2EnvironmentEdit.setText(
81 Preferences.getDebugger("Python2VirtualEnv"))
82 self.py3EnvironmentEdit.setText( 73 self.py3EnvironmentEdit.setText(
83 Preferences.getDebugger("Python3VirtualEnv")) 74 Preferences.getDebugger("Python3VirtualEnv"))
84 75
85 76
86 def create(dlg): 77 def create(dlg):

eric ide

mercurial