cards.py 文件源码

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

项目:mongoaudit 作者: stampery 项目源码 文件源码
def welcome(self):
        pic = picRead('welcome.bmp', align='right')

        text = urwid.Text([
            ('text bold', self.app.name),
            ('text', ' is a CLI tool for auditing MongoDB servers, detecting poor security '
                     'settings and performing automated penetration testing.\n\n'),
            ('text italic', "\"With great power comes great responsibility\". Unauthorized "
                            "access to strangers' computer systems is a crime "
                            "in many countries. Take care.")
        ])
        button = urwid.AttrMap(
            TextButton(
                "Ok, I'll be careful!", on_press=self.choose_test), 'button')

        card = Card(text, header=pic, footer=button)
        self.app.render(card)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号