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. |