#!/usr/bin/env python3 # -*- coding:utf-8 -*- def info(message, title=None): global toastr timeOut = (len(message) / 20.) * 5000 toastr.info( message, title, {"timeOut": timeOut}, )