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

branch
eric7-maintenance
changeset 10460
3b34efa2857c
parent 10439
21c28b0f9e41
child 11006
a671918232f3
equal deleted inserted replaced
10366:411df92e881f 10460:3b34efa2857c
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 2
3 # Copyright (c) 2003 - 2023 Detlev Offenbach <detlev@die-offenbachs.de> 3 # Copyright (c) 2003 - 2024 Detlev Offenbach <detlev@die-offenbachs.de>
4 # 4 #
5 5
6 """ 6 """
7 Module implementing the font dialog wizard dialog. 7 Module implementing the font dialog wizard dialog.
8 """ 8 """
37 37
38 def __init__(self, parent=None): 38 def __init__(self, parent=None):
39 """ 39 """
40 Constructor 40 Constructor
41 41
42 @param parent parent widget (QWidget) 42 @param parent parent widget
43 @type QWidget
43 """ 44 """
44 super().__init__(parent) 45 super().__init__(parent)
45 self.setupUi(self) 46 self.setupUi(self)
46 47
47 self.bTest = self.buttonBox.addButton( 48 self.bTest = self.buttonBox.addButton(
62 63
63 def on_buttonBox_clicked(self, button): 64 def on_buttonBox_clicked(self, button):
64 """ 65 """
65 Private slot called by a button of the button box clicked. 66 Private slot called by a button of the button box clicked.
66 67
67 @param button button that was clicked (QAbstractButton) 68 @param button button that was clicked
69 @type QAbstractButton
68 """ 70 """
69 if button == self.bTest: 71 if button == self.bTest:
70 self.on_bTest_clicked() 72 self.on_bTest_clicked()
71 73
72 @pyqtSlot() 74 @pyqtSlot()
93 95
94 def on_eVariable_textChanged(self, text): 96 def on_eVariable_textChanged(self, text):
95 """ 97 """
96 Private slot to handle the textChanged signal of eVariable. 98 Private slot to handle the textChanged signal of eVariable.
97 99
98 @param text the new text (string) 100 @param text the new text
101 @type str
99 """ 102 """
100 if not text: 103 if not text:
101 self.bTest.setEnabled(True) 104 self.bTest.setEnabled(True)
102 else: 105 else:
103 self.bTest.setEnabled(False) 106 self.bTest.setEnabled(False)
130 133
131 def getCode(self, indLevel, indString): 134 def getCode(self, indLevel, indString):
132 """ 135 """
133 Public method to get the source code. 136 Public method to get the source code.
134 137
135 @param indLevel indentation level (int) 138 @param indLevel indentation level
136 @param indString string used for indentation (space or tab) (string) 139 @type int
137 @return generated code (string) 140 @param indString string used for indentation (space or tab)
141 @type str
142 @return generated code
143 @rtype str
138 """ 144 """
139 # calculate our indentation level and the indentation string 145 # calculate our indentation level and the indentation string
140 il = indLevel + 1 146 il = indLevel + 1
141 istring = il * indString 147 istring = il * indString
142 estring = os.linesep + indLevel * indString 148 estring = os.linesep + indLevel * indString

eric ide

mercurial