Changeset 32a3be9d0378…
Parent 922b431dece8…
by
Changes to one file · Browse files at 32a3be9d0378 Showing diff from parent 922b431dece8 Diff from another changeset...
@@ -190,11 +190,13 @@ return pixmap
def CommonMsgBox(icon, title, main, text='', buttons=QtGui.QMessageBox.Close,
- parent=None):
+ labels=[], parent=None):
msg = QtGui.QMessageBox(parent)
msg.setIcon(icon)
msg.setWindowTitle(title)
msg.setStandardButtons(buttons)
+ for button_id, label in labels:
+ msg.setButtonText(button_id, label)
msg.setText('<b>%s</b>' % main)
info = ''
for line in text.split('\n'):
|
Loading...