eric6/Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
diff -r 27f636beebad -r 2c730d5fd177 eric6/Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py
--- a/eric6/Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py	Tue Mar 02 17:17:09 2021 +0100
@@ -30,11 +30,14 @@
         
         # set initial values
         ctContext = Preferences.getEditor("CallTipsStyle")
-        if ctContext == QsciScintilla.CallTipsNoContext:
+        if ctContext == QsciScintilla.CallTipsStyle.CallTipsNoContext:
             self.ctNoContextButton.setChecked(True)
-        elif ctContext == QsciScintilla.CallTipsNoAutoCompletionContext:
+        elif (
+            ctContext ==
+            QsciScintilla.CallTipsStyle.CallTipsNoAutoCompletionContext
+        ):
             self.ctNoAutoCompletionButton.setChecked(True)
-        elif ctContext == QsciScintilla.CallTipsContext:
+        elif ctContext == QsciScintilla.CallTipsStyle.CallTipsContext:
             self.ctContextButton.setChecked(True)
         
     def save(self):
@@ -43,13 +46,16 @@
         """
         if self.ctNoContextButton.isChecked():
             Preferences.setEditor(
-                "CallTipsStyle", QsciScintilla.CallTipsNoContext)
+                "CallTipsStyle",
+                QsciScintilla.CallTipsStyle.CallTipsNoContext)
         elif self.ctNoAutoCompletionButton.isChecked():
             Preferences.setEditor(
-                "CallTipsStyle", QsciScintilla.CallTipsNoAutoCompletionContext)
+                "CallTipsStyle",
+                QsciScintilla.CallTipsStyle.CallTipsNoAutoCompletionContext)
         elif self.ctContextButton.isChecked():
             Preferences.setEditor(
-                "CallTipsStyle", QsciScintilla.CallTipsContext)
+                "CallTipsStyle",
+                QsciScintilla.CallTipsStyle.CallTipsContext)
 
 
 def create(dlg):

eric ide

mercurial