eric6/Preferences/ConfigurationPages/MicroPythonPage.py

branch
micropython
changeset 7086
b757db426076
parent 7079
d1564b590677
child 7099
89f11ae6bec3
diff -r 328f0f44aa95 -r b757db426076 eric6/Preferences/ConfigurationPages/MicroPythonPage.py
--- a/eric6/Preferences/ConfigurationPages/MicroPythonPage.py	Sat Jul 27 15:40:51 2019 +0200
+++ b/eric6/Preferences/ConfigurationPages/MicroPythonPage.py	Sat Jul 27 15:41:52 2019 +0200
@@ -38,6 +38,9 @@
         self.colorSchemeComboBox.setCurrentIndex(
             self.colorSchemeComboBox.findText(
                 Preferences.getMicroPython("ColorScheme")))
+        self.timeoutSpinBox.setValue(
+            Preferences.getMicroPython("SerialTimeout") / 1000)
+        # converted to seconds
     
     def save(self):
         """
@@ -45,6 +48,9 @@
         """
         Preferences.setMicroPython(
             "ColorScheme", self.colorSchemeComboBox.currentText())
+        Preferences.setMicroPython(
+            "SerialTimeout", self.timeoutSpinBox.value() * 1000)
+        # converted to milliseconds
     
 
 def create(dlg):

eric ide

mercurial