def simple_message(msg, parent=None, title=None):
 dialog = gtk.MessageDialog(parent=None, type=gtk.MESSAGE_INFO, buttons=gtk.BUTTONS_OK, message_format=msg)
 if (parent is not None):
  dialog.set_transient_for(parent)
 if (title is not None):
  dialog.set_title(title)
 dialog.show()
 dialog.run()
 dialog.destroy()
 return None

def simple_message ( msg , parent = None , title = None ) : dialog = gtk . MessageDialog ( parent = None , type = gtk . MESSAGE_INFO , buttons = gtk . BUTTONS_OK , message_format = msg ) if ( parent is not None ) : dialog . set_transient_for ( parent ) if ( title is not None ) : dialog . set_title ( title ) dialog . show ( ) dialog . run ( ) dialog . destroy ( ) return None
create a simple message dialog with string msg .