Preferences/ConfigurationPages/ConfigurationPageBase.py

changeset 4676
c65b401b775e
parent 4673
6fa2418f010c
child 5389
9b1c800daff3
equal deleted inserted replaced
4675:adb8882de5af 4676:c65b401b775e
115 as the sample (boolean) 115 as the sample (boolean)
116 @param options options for the font dialog 116 @param options options for the font dialog
117 (QFontDialog.FontDialogOptions) 117 (QFontDialog.FontDialogOptions)
118 @return selected font (QFont) 118 @return selected font (QFont)
119 """ 119 """
120 font, ok = QFontDialog.getFont(fontVar, self, options=options) 120 font, ok = QFontDialog.getFont(fontVar, self, "", options)
121 if ok: 121 if ok:
122 fontSample.setFont(font) 122 fontSample.setFont(font)
123 if showFontInfo: 123 if showFontInfo:
124 fontSample.setText( 124 fontSample.setText(
125 "{0} {1}".format(font.family(), font.pointSize())) 125 "{0} {1}".format(font.family(), font.pointSize()))

eric ide

mercurial