184 |
185 |
185 def on_buttonBox_clicked(self, button): |
186 def on_buttonBox_clicked(self, button): |
186 """ |
187 """ |
187 Private slot called by a button of the button box clicked. |
188 Private slot called by a button of the button box clicked. |
188 |
189 |
189 @param button button that was clicked (QAbstractButton) |
190 @param button button that was clicked |
|
191 @type QAbstractButton |
190 """ |
192 """ |
191 if button == self.bTest: |
193 if button == self.bTest: |
192 self.on_bTest_clicked() |
194 self.on_bTest_clicked() |
193 |
195 |
194 @pyqtSlot() |
196 @pyqtSlot() |
230 |
232 |
231 def __getButtonCode(self, istring, indString): |
233 def __getButtonCode(self, istring, indString): |
232 """ |
234 """ |
233 Private method to generate the button code. |
235 Private method to generate the button code. |
234 |
236 |
235 @param istring indentation string (string) |
237 @param istring indentation string |
236 @param indString string used for indentation (space or tab) (string) |
238 @type str |
237 @return the button code (string) |
239 @param indString string used for indentation (space or tab) |
|
240 @type str |
|
241 @return the button code |
|
242 @rtype str |
238 """ |
243 """ |
239 buttons = [] |
244 buttons = [] |
240 if self.abortCheck.isChecked(): |
245 if self.abortCheck.isChecked(): |
241 buttons.append("QMessageBox.StandardButton.Abort") |
246 buttons.append("QMessageBox.StandardButton.Abort") |
242 if self.applyCheck.isChecked(): |
247 if self.applyCheck.isChecked(): |
289 |
294 |
290 def getCode(self, indLevel, indString): |
295 def getCode(self, indLevel, indString): |
291 """ |
296 """ |
292 Public method to get the source code. |
297 Public method to get the source code. |
293 |
298 |
294 @param indLevel indentation level (int) |
299 @param indLevel indentation level |
295 @param indString string used for indentation (space or tab) (string) |
300 @type int |
296 @return generated code (string) |
301 @param indString string used for indentation (space or tab) |
|
302 @type str |
|
303 @return generated code |
|
304 @rtype str |
297 """ |
305 """ |
298 # calculate our indentation level and the indentation string |
306 # calculate our indentation level and the indentation string |
299 il = indLevel + 1 |
307 il = indLevel + 1 |
300 istring = il * indString |
308 istring = il * indString |
301 estring = os.linesep + indLevel * indString |
309 estring = os.linesep + indLevel * indString |