Preferences/ConfigurationPages/EditorCalltipsPage.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3025
67064c71df21
child 3145
a9de05d4a22f
--- a/Preferences/ConfigurationPages/EditorCalltipsPage.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Preferences/ConfigurationPages/EditorCalltipsPage.py	Fri Nov 01 15:48:48 2013 +0100
@@ -32,9 +32,11 @@
         self.setObjectName("EditorCalltipsPage")
         
         if QSCINTILLA_VERSION() >= 0x020700:
-            self.positionComboBox.addItem(self.trUtf8("Below Text"),
+            self.positionComboBox.addItem(
+                self.trUtf8("Below Text"),
                 QsciScintilla.CallTipsBelowText)
-            self.positionComboBox.addItem(self.trUtf8("Above Text"),
+            self.positionComboBox.addItem(
+                self.trUtf8("Above Text"),
                 QsciScintilla.CallTipsAboveText)
         else:
             self.calltipsPositionBox.hide()
@@ -46,7 +48,7 @@
         self.ctVisibleSlider.setValue(
             Preferences.getEditor("CallTipsVisible"))
         self.initColour("CallTipsBackground", self.calltipsBackgroundButton,
-            Preferences.getEditorColour)
+                        Preferences.getEditorColour)
         
         self.ctScintillaCheckBox.setChecked(
             Preferences.getEditor("CallTipsScintillaOnFail"))
@@ -60,18 +62,22 @@
         """
         Public slot to save the EditorCalltips configuration.
         """
-        Preferences.setEditor("CallTipsEnabled",
+        Preferences.setEditor(
+            "CallTipsEnabled",
             self.ctEnabledCheckBox.isChecked())
         
-        Preferences.setEditor("CallTipsVisible",
+        Preferences.setEditor(
+            "CallTipsVisible",
             self.ctVisibleSlider.value())
         self.saveColours(Preferences.setEditorColour)
         
-        Preferences.setEditor("CallTipsScintillaOnFail",
+        Preferences.setEditor(
+            "CallTipsScintillaOnFail",
             self.ctScintillaCheckBox.isChecked())
         
         if QSCINTILLA_VERSION() >= 0x020700:
-            Preferences.setEditor("CallTipsPosition",
+            Preferences.setEditor(
+                "CallTipsPosition",
                 self.positionComboBox.itemData(
                     self.positionComboBox.currentIndex()))
 

eric ide

mercurial