eric6/Preferences/ConfigurationPages/MicroPythonPage.py

branch
micropython
changeset 7099
89f11ae6bec3
parent 7086
b757db426076
child 7134
21d23ca51680
--- a/eric6/Preferences/ConfigurationPages/MicroPythonPage.py	Tue Jul 30 19:25:23 2019 +0200
+++ b/eric6/Preferences/ConfigurationPages/MicroPythonPage.py	Tue Jul 30 19:26:56 2019 +0200
@@ -35,22 +35,26 @@
         self.colorSchemeComboBox.addItems(sorted(AnsiColorSchemes.keys()))
         
         # set initial values
+        self.timeoutSpinBox.setValue(
+            Preferences.getMicroPython("SerialTimeout") / 1000)
+        # converted to seconds
         self.colorSchemeComboBox.setCurrentIndex(
             self.colorSchemeComboBox.findText(
                 Preferences.getMicroPython("ColorScheme")))
-        self.timeoutSpinBox.setValue(
-            Preferences.getMicroPython("SerialTimeout") / 1000)
-        # converted to seconds
+        self.replWrapCheckBox.setChecked(
+            Preferences.getMicroPython("ReplLineWrap"))
     
     def save(self):
         """
         Public slot to save the MicroPython configuration.
         """
         Preferences.setMicroPython(
+            "SerialTimeout", self.timeoutSpinBox.value() * 1000)
+        # converted to milliseconds
+        Preferences.setMicroPython(
             "ColorScheme", self.colorSchemeComboBox.currentText())
         Preferences.setMicroPython(
-            "SerialTimeout", self.timeoutSpinBox.value() * 1000)
-        # converted to milliseconds
+            "ReplLineWrap", self.replWrapCheckBox.isChecked())
     
 
 def create(dlg):

eric ide

mercurial