def init_banner(s): s.af = {} s.aflock = Lock() s.c = CursesUtil() s.text = [] BlinkenBase.init_banner(s) s.setupwindows() s.inputhandler = InputHandler(s.c) s.gettf().setcolor('red') s._msg(offlineimap.banner) s.inputhandler.set_bgchar(s.keypress) signal.signal(signal.SIGWINCH, s.resizehandler) s.resizelock = Lock() s.resizecount = 0
def init_banner(s): s.af = {} s.aflock = Lock() s.c = CursesUtil() s.text = [] BlinkenBase.init_banner(s) s.setupwindows() s.inputhandler = InputHandler(s.c) s.gettf().setcolor("red") s._msg(offlineimap.banner) s.inputhandler.set_bgchar(s.keypress) signal.signal(signal.SIGWINCH, s.resizehandler) s.resizelock = Lock() s.resizecount = 0
def sleep(s, sleepsecs, account): s.gettf().setcolor('red') s._msg("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60)) return BlinkenBase.sleep(s, sleepsecs, account)
def sleep(s, sleepsecs, siglistener): s.gettf().setcolor("red") s._msg("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60)) return BlinkenBase.sleep(s, sleepsecs, siglistener)