about_dialog.py 文件源码

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

项目:draobpilc 作者: awamper 项目源码 文件源码
def __init__(self):
        Gtk.AboutDialog.__init__(self)
        self.connect('response', lambda w, r: self.destroy())

        self.set_modal(True)
        self.set_title(_('About {app_name}').format(
            app_name=version.APP_NAME
        ))
        self.set_program_name(version.APP_NAME)
        self.set_copyright(_('Copyright \xa9 2015 {author}.').format(
            author=version.AUTHOR
        ))
        self.set_website(version.APP_URL)
        self.set_website_label(_('Homepage'))
        self.set_license_type(Gtk.License.GPL_3_0)

        authors = [
            '{author} <{author_email}>'.format(
                author=version.AUTHOR,
                author_email=version.AUTHOR_EMAIL
            )
        ]

        self.set_authors(authors)
        self.set_version(str(version.APP_VERSION))

        logo_pixbuf = GdkPixbuf.Pixbuf.new_from_file(common.ICON_PATH)
        self.set_logo(logo_pixbuf)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号