87 |
88 |
88 def on_buttonBox_clicked(self, button): |
89 def on_buttonBox_clicked(self, button): |
89 """ |
90 """ |
90 Private slot called by a button of the button box clicked. |
91 Private slot called by a button of the button box clicked. |
91 |
92 |
92 @param button button that was clicked (QAbstractButton) |
93 @param button button that was clicked |
|
94 @type QAbstractButton |
93 """ |
95 """ |
94 if button == self.bTest: |
96 if button == self.bTest: |
95 self.on_bTest_clicked() |
97 self.on_bTest_clicked() |
96 |
98 |
97 @pyqtSlot() |
99 @pyqtSlot() |
155 |
157 |
156 def getCode(self, indLevel, indString): |
158 def getCode(self, indLevel, indString): |
157 """ |
159 """ |
158 Public method to get the source code for Qt6. |
160 Public method to get the source code for Qt6. |
159 |
161 |
160 @param indLevel indentation level (int) |
162 @param indLevel indentation level |
161 @param indString string used for indentation (space or tab) (string) |
163 @type int |
162 @return generated code (string) |
164 @param indString string used for indentation (space or tab) |
|
165 @type str |
|
166 @return generated code |
|
167 @rtype str |
163 """ |
168 """ |
164 # calculate our indentation level and the indentation string |
169 # calculate our indentation level and the indentation string |
165 il = indLevel + 1 |
170 il = indLevel + 1 |
166 istring = il * indString |
171 istring = il * indString |
167 estring = os.linesep + indLevel * indString |
172 estring = os.linesep + indLevel * indString |