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 |