E5Gui/E5MessageBox.py

changeset 545
1538031b5175
parent 541
00e1a5d060c5
child 549
fe99d46d56c8
equal deleted inserted replaced
544:303e2c8fd00e 545:1538031b5175
39 clickedButton = messageBox.clickedButton() 39 clickedButton = messageBox.clickedButton()
40 if clickedButton is None: 40 if clickedButton is None:
41 return QMessageBox.NoButton 41 return QMessageBox.NoButton
42 else: 42 else:
43 return messageBox.standardButton(clickedButton) 43 return messageBox.standardButton(clickedButton)
44
45 # the about functions are here for consistancy
46 about = QMessageBox.about
47 aboutQt = QMessageBox.aboutQt
44 48
45 def critical(parent, title, text, 49 def critical(parent, title, text,
46 buttons = QMessageBox.Ok, defaultButton = QMessageBox.NoButton): 50 buttons = QMessageBox.Ok, defaultButton = QMessageBox.NoButton):
47 """ 51 """
48 Function to show a modal critical message box. 52 Function to show a modal critical message box.

eric ide

mercurial