gtkinfo.py 文件源码

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

项目:python-3-for-absolute-begs 作者: Apress 项目源码 文件源码
def on_about(self, widget, *args):
        """About Dialog

        What it says on the box
        """
        print "About Gtk Info"
        logo = self.icon
        dialog = gtk.AboutDialog()
        dialog.set_name('Gtk Info')
        dialog.set_version(str(__version__))
        dialog.set_authors([__maintainer__])
        dialog.set_documenters([__maintainer__])
        dialog.set_logo(logo)
        comment = 'A graphical interface for displaying system information'
        dialog.set_comments(comment)
        response = dialog.run()
        if response == -6:
            dialog.destroy()
        return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号