ui.py 文件源码

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

项目:WxNeteaseMusic 作者: yaphone 项目源码 文件源码
def get_param(self, prompt_string):
        # keep playing info in line 1
        curses.echo()
        self.screen.move(4, 1)
        self.screen.clrtobot()
        self.addstr(5, self.startcol, prompt_string,
                    curses.color_pair(1))
        self.screen.refresh()
        info = self.screen.getstr(10, self.startcol, 60)
        if info == '':
            return '/return'
        elif info.strip() is '':
            return self.get_param(prompt_string)
        else:
            return info
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号