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)
评论列表
文章目录