def information(title, message=None, details=None, informative_text=None):
 if (message is None):
  message = title
 mbox = QtWidgets.QMessageBox(active_window())
 mbox.setStandardButtons(QtWidgets.QMessageBox.Close)
 mbox.setDefaultButton(QtWidgets.QMessageBox.Close)
 mbox.setWindowTitle(title)
 mbox.setWindowModality(Qt.WindowModal)
 mbox.setTextFormat(Qt.PlainText)
 mbox.setText(message)
 if informative_text:
  mbox.setInformativeText(informative_text)
 if details:
  mbox.setDetailedText(details)
 pixmap = icons.cola().pixmap(defs.large_icon)
 mbox.setIconPixmap(pixmap)
 mbox.exec_()

def information ( title , message = None , details = None , informative_text = None ) : if ( message is None ) : message = title mbox = QtWidgets . QMessageBox ( active_window ( ) ) mbox . setStandardButtons ( QtWidgets . QMessageBox . Close ) mbox . setDefaultButton ( QtWidgets . QMessageBox . Close ) mbox . setWindowTitle ( title ) mbox . setWindowModality ( Qt . WindowModal ) mbox . setTextFormat ( Qt . PlainText ) mbox . setText ( message ) if informative_text : mbox . setInformativeText ( informative_text ) if details : mbox . setDetailedText ( details ) pixmap = icons . cola ( ) . pixmap ( defs . large_icon ) mbox . setIconPixmap ( pixmap ) mbox . exec_ ( )
show information with the provided title and message .