src/eric7/Plugins/WizardPlugins/EricMessageBoxWizard/EricMessageBoxWizardDialog.py

branch
eric7
changeset 9433
6df1aeaa4529
parent 9413
80c06d472826
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9432:e2445fa08533 9433:6df1aeaa4529
426 if self.yestoallCheck.isChecked(): 426 if self.yestoallCheck.isChecked():
427 buttons.append("EricMessageBox.YesToAll") 427 buttons.append("EricMessageBox.YesToAll")
428 if len(buttons) == 0: 428 if len(buttons) == 0:
429 return "" 429 return ""
430 430
431 joinstring = " |{0}{1}".format(os.linesep, istring) 431 joinstring = "{0}{1}| ".format(os.linesep, istring)
432 intro = "," if withIntro else "" 432 intro = "," if withIntro else ""
433 btnCode = "{0}{1}{2}{3}".format( 433 btnCode = "{0}{1}{2}{3}".format(
434 intro, os.linesep, istring, joinstring.join(buttons) 434 intro, os.linesep, istring, joinstring.join(buttons)
435 ) 435 )
436 436
566 if btnCode: 566 if btnCode:
567 msgdlg += ",{0}{1}buttons={2}".format(os.linesep, istring, btnCode) 567 msgdlg += ",{0}{1}buttons={2}".format(os.linesep, istring, btnCode)
568 if not self.parentNone.isChecked(): 568 if not self.parentNone.isChecked():
569 msgdlg += ",{0}{1}parent={2}".format(os.linesep, istring, parent) 569 msgdlg += ",{0}{1}parent={2}".format(os.linesep, istring, parent)
570 570
571 msgdlg += "{0}){0}".format(estring) 571 msgdlg += ",{0}){0}".format(estring)
572 return msgdlg 572 return msgdlg

eric ide

mercurial