eric7/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py

branch
eric7
changeset 8322
b422b4e77d19
parent 8318
962bce857696
child 8356
68ec9c3d4de5
equal deleted inserted replaced
8319:ea11a3948f40 8322:b422b4e77d19
311 if self.rInformation.isChecked(): 311 if self.rInformation.isChecked():
312 E5MessageBox.information( 312 E5MessageBox.information(
313 self, 313 self,
314 self.eCaption.text(), 314 self.eCaption.text(),
315 self.eMessage.toPlainText(), 315 self.eMessage.toPlainText(),
316 E5MessageBox.StandardButtons(buttons), 316 buttons,
317 defaultButton 317 defaultButton
318 ) 318 )
319 elif self.rQuestion.isChecked(): 319 elif self.rQuestion.isChecked():
320 E5MessageBox.question( 320 E5MessageBox.question(
321 self, 321 self,
322 self.eCaption.text(), 322 self.eCaption.text(),
323 self.eMessage.toPlainText(), 323 self.eMessage.toPlainText(),
324 E5MessageBox.StandardButtons(buttons), 324 buttons,
325 defaultButton 325 defaultButton
326 ) 326 )
327 elif self.rWarning.isChecked(): 327 elif self.rWarning.isChecked():
328 E5MessageBox.warning( 328 E5MessageBox.warning(
329 self, 329 self,
330 self.eCaption.text(), 330 self.eCaption.text(),
331 self.eMessage.toPlainText(), 331 self.eMessage.toPlainText(),
332 E5MessageBox.StandardButtons(buttons), 332 buttons,
333 defaultButton 333 defaultButton
334 ) 334 )
335 elif self.rCritical.isChecked(): 335 elif self.rCritical.isChecked():
336 E5MessageBox.critical( 336 E5MessageBox.critical(
337 self, 337 self,
338 self.eCaption.text(), 338 self.eCaption.text(),
339 self.eMessage.toPlainText(), 339 self.eMessage.toPlainText(),
340 E5MessageBox.StandardButtons(buttons), 340 buttons,
341 defaultButton 341 defaultButton
342 ) 342 )
343 elif ( 343 elif (
344 self.rYesNo.isChecked() or 344 self.rYesNo.isChecked() or
345 self.rRetryAbort.isChecked() 345 self.rRetryAbort.isChecked()
427 return "" 427 return ""
428 428
429 istring2 = istring + indString 429 istring2 = istring + indString
430 joinstring = ' |{0}{1}'.format(os.linesep, istring2) 430 joinstring = ' |{0}{1}'.format(os.linesep, istring2)
431 btnCode = ( 431 btnCode = (
432 ',{0}{1}E5MessageBox.StandardButtons('.format(os.linesep, istring) 432 ',{0}{1}'.format(os.linesep, istring)
433 if withIntro else 433 if withIntro else
434 'E5MessageBox.StandardButtons(' 434 ''
435 ) 435 )
436 btnCode += '{0}{1}{2})'.format( 436 btnCode += '{0}{1}{2}'.format(
437 os.linesep, istring2, joinstring.join(buttons)) 437 os.linesep, istring2, joinstring.join(buttons))
438 438
439 return btnCode 439 return btnCode
440 440
441 def __getDefaultButtonCode(self, istring): 441 def __getDefaultButtonCode(self, istring):

eric ide

mercurial