Preferences/ConfigurationPages/DebuggerRubyPage.py

changeset 945
8cd4d08fa9f6
parent 882
34b86be88bf0
child 1131
7781e396c903
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
15 from .ConfigurationPageBase import ConfigurationPageBase 15 from .ConfigurationPageBase import ConfigurationPageBase
16 from .Ui_DebuggerRubyPage import Ui_DebuggerRubyPage 16 from .Ui_DebuggerRubyPage import Ui_DebuggerRubyPage
17 17
18 import Preferences 18 import Preferences
19 import Utilities 19 import Utilities
20
20 21
21 class DebuggerRubyPage(ConfigurationPageBase, Ui_DebuggerRubyPage): 22 class DebuggerRubyPage(ConfigurationPageBase, Ui_DebuggerRubyPage):
22 """ 23 """
23 Class implementing the Debugger Ruby configuration page. 24 Class implementing the Debugger Ruby configuration page.
24 """ 25 """
40 41
41 def save(self): 42 def save(self):
42 """ 43 """
43 Public slot to save the Debugger Ruby configuration. 44 Public slot to save the Debugger Ruby configuration.
44 """ 45 """
45 Preferences.setDebugger("RubyInterpreter", 46 Preferences.setDebugger("RubyInterpreter",
46 self.rubyInterpreterEdit.text()) 47 self.rubyInterpreterEdit.text())
47 Preferences.setDebugger("RubyRedirect", 48 Preferences.setDebugger("RubyRedirect",
48 self.rbRedirectCheckBox.isChecked()) 49 self.rbRedirectCheckBox.isChecked())
49 50
50 @pyqtSlot() 51 @pyqtSlot()
51 def on_rubyInterpreterButton_clicked(self): 52 def on_rubyInterpreterButton_clicked(self):
52 """ 53 """
59 60
60 if file: 61 if file:
61 self.rubyInterpreterEdit.setText( 62 self.rubyInterpreterEdit.setText(
62 Utilities.toNativeSeparators(file)) 63 Utilities.toNativeSeparators(file))
63 64
65
64 def create(dlg): 66 def create(dlg):
65 """ 67 """
66 Module function to create the configuration page. 68 Module function to create the configuration page.
67 69
68 @param dlg reference to the configuration dialog 70 @param dlg reference to the configuration dialog

eric ide

mercurial