代码拉取完成,页面将自动刷新
#! /usr/bin/env python
class BaseApp(object):
'''Base App class.'''
def __init__(self, settings, key_bindings):
self.debug_level = 0
def handle_input(self, input_image, panes):
pass
def handle_key(self, key, panes):
'''Handle key and return either key (to let someone downstream handle it) or None (if this app handled it)'''
pass
def redraw_needed(self, key, panes):
'''App should return whether or not its internal state has
been updated (perhaps in response to handle_key, handle_input,
or some internal processing finishing).
'''
return False
def draw(self, panes):
'''Tells the app to draw in the given panes. Returns True if panes were changed and require a redraw, False if nothing was changed.'''
return False
def draw_help(self, panes):
'''Tells the app to draw its help screen in the given pane. No return necessary.'''
pass
def start(self):
'''Notify app to start, possibly creating any necessary threads'''
pass
def get_heartbeats(self):
'''Returns a list of heartbeat functions, if any, that should be called regularly.'''
return []
def set_debug(self, level):
self.debug_level = level
def quit(self):
'''Notify app to quit, possibly joining any threads'''
pass
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。