menu_textpad_mod.py 文件源码

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

项目:aws-ec2rescue-linux 作者: awslabs 项目源码 文件源码
def gather(self):
        """Collect and return the contents of the window."""
        result = ""
        for y in range(self.maxy + 1):
            self.win.move(y, 0)
            stop = self._end_of_line(y)
            if stop == 0 and self.stripspaces:
                continue
            for x in range(self.maxx + 1):
                if self.stripspaces and x > stop:
                    break
                result += chr(curses.ascii.ascii(self.win.inch(y, x)))
            if self.maxy > 0:
                result += "\n"
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号