def critical(title, message=None, details=None):
 if (message is None):
  message = title
 mbox = ResizeableMessageBox(active_window())
 mbox.setWindowTitle(title)
 mbox.setTextFormat(Qt.PlainText)
 mbox.setText(message)
 mbox.setIcon(QtWidgets.QMessageBox.Critical)
 mbox.setStandardButtons(QtWidgets.QMessageBox.Close)
 mbox.setDefaultButton(QtWidgets.QMessageBox.Close)
 if details:
  mbox.setDetailedText(details)
 mbox.exec_()

def critical ( title , message = None , details = None ) : if ( message is None ) : message = title mbox = ResizeableMessageBox ( active_window ( ) ) mbox . setWindowTitle ( title ) mbox . setTextFormat ( Qt . PlainText ) mbox . setText ( message ) mbox . setIcon ( QtWidgets . QMessageBox . Critical ) mbox . setStandardButtons ( QtWidgets . QMessageBox . Close ) mbox . setDefaultButton ( QtWidgets . QMessageBox . Close ) if details : mbox . setDetailedText ( details ) mbox . exec_ ( )
log a message with severity critical on the root logger .