src/eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogOptionsDialog.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9653
e67609152c5e
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
14 14
15 class FontDialogOptionsDialog(QDialog, Ui_FontDialogOptionsDialog): 15 class FontDialogOptionsDialog(QDialog, Ui_FontDialogOptionsDialog):
16 """ 16 """
17 Class implementing a dialog to select the applicable font dialog options. 17 Class implementing a dialog to select the applicable font dialog options.
18 """ 18 """
19
19 def __init__(self, options, parent=None): 20 def __init__(self, options, parent=None):
20 """ 21 """
21 Constructor 22 Constructor
22 23
23 @param options dictionary with flags for the various dialog options 24 @param options dictionary with flags for the various dialog options
24 @type dict 25 @type dict
25 @param parent reference to the parent widget (defaults to None) 26 @param parent reference to the parent widget (defaults to None)
26 @type QWidget (optional) 27 @type QWidget (optional)
27 """ 28 """
28 super().__init__(parent) 29 super().__init__(parent)
29 self.setupUi(self) 30 self.setupUi(self)
30 31
31 self.noNativeDialogCheckBox.setChecked(options["noNativeDialog"]) 32 self.noNativeDialogCheckBox.setChecked(options["noNativeDialog"])
32 self.scalableCheckBox.setChecked(options["scalableFonts"]) 33 self.scalableCheckBox.setChecked(options["scalableFonts"])
33 self.nonScalableCheckBox.setChecked(options["nonScalableFonts"]) 34 self.nonScalableCheckBox.setChecked(options["nonScalableFonts"])
34 self.monospacedCheckBox.setChecked(options["monospacedFonts"]) 35 self.monospacedCheckBox.setChecked(options["monospacedFonts"])
35 self.proportionalCheckBox.setChecked(options["proportionalFonts"]) 36 self.proportionalCheckBox.setChecked(options["proportionalFonts"])
36 37
37 def getOptions(self): 38 def getOptions(self):
38 """ 39 """
39 Public method to get the selected font dialog options. 40 Public method to get the selected font dialog options.
40 41
41 @return dictionary with flags for the various dialog options 42 @return dictionary with flags for the various dialog options
42 @rtype dict 43 @rtype dict
43 """ 44 """
44 return { 45 return {
45 "noNativeDialog": self.noNativeDialogCheckBox.isChecked(), 46 "noNativeDialog": self.noNativeDialogCheckBox.isChecked(),

eric ide

mercurial