code: def msg_box(self, msg, title=None, typ='info'):
          
          self.output['msgbox'] = {'type': typ, "title": title or msg[:20], "msg": msg}
docs: Create a message box
  
          :param str msg:
          :param str title:
          :param str typ: 'info', 'error', 'warning'