eric6/Preferences/ConfigurationPages/MicroPythonPage.py

branch
micropython
changeset 7086
b757db426076
parent 7079
d1564b590677
child 7099
89f11ae6bec3
equal deleted inserted replaced
7085:328f0f44aa95 7086:b757db426076
36 36
37 # set initial values 37 # set initial values
38 self.colorSchemeComboBox.setCurrentIndex( 38 self.colorSchemeComboBox.setCurrentIndex(
39 self.colorSchemeComboBox.findText( 39 self.colorSchemeComboBox.findText(
40 Preferences.getMicroPython("ColorScheme"))) 40 Preferences.getMicroPython("ColorScheme")))
41 self.timeoutSpinBox.setValue(
42 Preferences.getMicroPython("SerialTimeout") / 1000)
43 # converted to seconds
41 44
42 def save(self): 45 def save(self):
43 """ 46 """
44 Public slot to save the MicroPython configuration. 47 Public slot to save the MicroPython configuration.
45 """ 48 """
46 Preferences.setMicroPython( 49 Preferences.setMicroPython(
47 "ColorScheme", self.colorSchemeComboBox.currentText()) 50 "ColorScheme", self.colorSchemeComboBox.currentText())
51 Preferences.setMicroPython(
52 "SerialTimeout", self.timeoutSpinBox.value() * 1000)
53 # converted to milliseconds
48 54
49 55
50 def create(dlg): 56 def create(dlg):
51 """ 57 """
52 Module function to create the configuration page. 58 Module function to create the configuration page.

eric ide

mercurial