def do_command(self, ch):
if ch == 127: # backspace
Textbox.do_command(self,curses.KEY_BACKSPACE)
self.win.refresh()
return 1
if ch == 27:
Textbox.gather(self)
return -1
return Textbox.do_command(self, ch)
评论列表
文章目录