eric6/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8259
2bbec88047dd
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
28 """ 28 """
29 Constructor 29 Constructor
30 30
31 @param parent reference to the parent widget (QWidget) 31 @param parent reference to the parent widget (QWidget)
32 """ 32 """
33 super(E5MessageBoxWizardDialog, self).__init__(parent) 33 super().__init__(parent)
34 self.setupUi(self) 34 self.setupUi(self)
35 35
36 # keep the following three lists in sync 36 # keep the following three lists in sync
37 self.buttonsList = [ 37 self.buttonsList = [
38 self.tr("No button"), 38 self.tr("No button"),
426 if len(buttons) == 0: 426 if len(buttons) == 0:
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 if withIntro: 431 btnCode = (
432 btnCode = ',{0}{1}E5MessageBox.StandardButtons('.format( 432 ',{0}{1}E5MessageBox.StandardButtons('.format(os.linesep, istring)
433 os.linesep, istring) 433 if withIntro else
434 else: 434 'E5MessageBox.StandardButtons('
435 btnCode = 'E5MessageBox.StandardButtons(' 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

eric ide

mercurial