menu_textpad_mod.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:aws-ec2rescue-linux 作者: awslabs 项目源码 文件源码
def edit(self, validate=None):
        """Edit in the widget window and collect the results."""
        # Make the cursor visible and update the screen
        curses.curs_set(1)
        self.win.refresh()
        while 1:
            ch = self.win.getch()
            if validate:
                ch = validate(ch)
            if not ch:
                continue
            if not self.do_command(ch):
                break
            self.win.refresh()
        # Hide the cursor
        curses.curs_set(0)
        return self.gather()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号