def showInfo(text, parent=False, help='', type='info', title='Anki'):
 if (parent is False):
  parent = (aqt.mw.app.activeWindow() or aqt.mw)
 if (type == 'warning'):
  icon = QMessageBox.Warning
 elif (type == 'critical'):
  icon = QMessageBox.Critical
 else:
  icon = QMessageBox.Information
 mb = QMessageBox(parent)
 mb.setText(text)
 mb.setIcon(icon)
 mb.setWindowModality(Qt.WindowModal)
 mb.setWindowTitle(title)
 b = mb.addButton(QMessageBox.Ok)
 b.setDefault(True)
 if help:
  b = mb.addButton(QMessageBox.Help)
  b.clicked.connect((lambda : openHelp(help)))
  b.setAutoDefault(False)
 return mb.exec_()

def showInfo ( text , parent = False , help = '' , type = 'info' , title = 'Anki' ) : if ( parent is False ) : parent = ( aqt . mw . app . activeWindow ( ) or aqt . mw ) if ( type == 'warning' ) : icon = QMessageBox . Warning elif ( type == 'critical' ) : icon = QMessageBox . Critical else : icon = QMessageBox . Information mb = QMessageBox ( parent ) mb . setText ( text ) mb . setIcon ( icon ) mb . setWindowModality ( Qt . WindowModal ) mb . setWindowTitle ( title ) b = mb . addButton ( QMessageBox . Ok ) b . setDefault ( True ) if help : b = mb . addButton ( QMessageBox . Help ) b . clicked . connect ( ( lambda : openHelp ( help ) ) ) b . setAutoDefault ( False ) return mb . exec_ ( )
show a small info window with an ok button .