Preferences/ConfigurationPages/EditorCalltipsQScintillaPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
42 def save(self): 42 def save(self):
43 """ 43 """
44 Public slot to save the EditorCalltips configuration. 44 Public slot to save the EditorCalltips configuration.
45 """ 45 """
46 if self.ctNoContextButton.isChecked(): 46 if self.ctNoContextButton.isChecked():
47 Preferences.setEditor("CallTipsStyle", 47 Preferences.setEditor(
48 QsciScintilla.CallTipsNoContext) 48 "CallTipsStyle", QsciScintilla.CallTipsNoContext)
49 elif self.ctNoAutoCompletionButton.isChecked(): 49 elif self.ctNoAutoCompletionButton.isChecked():
50 Preferences.setEditor("CallTipsStyle", 50 Preferences.setEditor(
51 QsciScintilla.CallTipsNoAutoCompletionContext) 51 "CallTipsStyle", QsciScintilla.CallTipsNoAutoCompletionContext)
52 elif self.ctContextButton.isChecked(): 52 elif self.ctContextButton.isChecked():
53 Preferences.setEditor("CallTipsStyle", 53 Preferences.setEditor(
54 QsciScintilla.CallTipsContext) 54 "CallTipsStyle", QsciScintilla.CallTipsContext)
55 55
56 56
57 def create(dlg): 57 def create(dlg):
58 """ 58 """
59 Module function to create the configuration page. 59 Module function to create the configuration page.
60 60
61 @param dlg reference to the configuration dialog 61 @param dlg reference to the configuration dialog
62 @return reference to the instantiated page (ConfigurationPageBase)
62 """ 63 """
63 page = EditorCalltipsQScintillaPage() 64 page = EditorCalltipsQScintillaPage()
64 return page 65 return page

eric ide

mercurial