def message_warning(text, title=None, informative_text=None, details=None, buttons=None, default_button=None, exc_info=False, parent=None):
 if (not text):
  import random
  text_candidates = ['Death could come at any moment.', 'Murphy lurks about. Remember to save frequently.']
  text = random.choice(text_candidates)
 if (title is not None):
  title = 'Warning'
 return message(QMessageBox.Warning, text, title, informative_text, details, buttons, default_button, exc_info, parent)

def message_warning ( text , title = None , informative_text = None , details = None , buttons = None , default_button = None , exc_info = False , parent = None ) : if ( not text ) : import random text_candidates = [ 'Death could come at any moment.' , 'Murphy lurks about. Remember to save frequently.' ] text = random . choice ( text_candidates ) if ( title is not None ) : title = 'Warning' return message ( QMessageBox . Warning , text , title , informative_text , details , buttons , default_button , exc_info , parent )
show a warning message .