Preferences/ConfigurationPages/ShellPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2677
3d4277929fb3
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
77 Preferences.setShell("MarginsFont", self.marginsFont) 77 Preferences.setShell("MarginsFont", self.marginsFont)
78 78
79 @pyqtSlot() 79 @pyqtSlot()
80 def on_monospacedFontButton_clicked(self): 80 def on_monospacedFontButton_clicked(self):
81 """ 81 """
82 Private method used to select the font to be used as the monospaced font. 82 Private method used to select the font to be used as the monospaced
83 font.
83 """ 84 """
84 self.monospacedFont = \ 85 self.monospacedFont = \
85 self.selectFont(self.monospacedFontSample, self.monospacedFont) 86 self.selectFont(self.monospacedFontSample, self.monospacedFont)
86 87
87 @pyqtSlot() 88 @pyqtSlot()
88 def on_linenumbersFontButton_clicked(self): 89 def on_linenumbersFontButton_clicked(self):
89 """ 90 """
90 Private method used to select the font for the editor margins. 91 Private method used to select the font for the editor margins.
91 """ 92 """
92 self.marginsFont = self.selectFont(self.marginsFontSample, self.marginsFont) 93 self.marginsFont = self.selectFont(self.marginsFontSample,
94 self.marginsFont)
93 95
94 def polishPage(self): 96 def polishPage(self):
95 """ 97 """
96 Public slot to perform some polishing actions. 98 Public slot to perform some polishing actions.
97 """ 99 """
102 def create(dlg): 104 def create(dlg):
103 """ 105 """
104 Module function to create the configuration page. 106 Module function to create the configuration page.
105 107
106 @param dlg reference to the configuration dialog 108 @param dlg reference to the configuration dialog
109 @return reference to the instantiated page (ConfigurationPageBase)
107 """ 110 """
108 page = ShellPage() 111 page = ShellPage()
109 return page 112 return page

eric ide

mercurial