def about_box(self, widget):
about = Gtk.AboutDialog(parent=self.window)
#
# set_program_name method is available in PyGTK 2.12 and above
#
try:
about.set_program_name(NAME)
except AttributeError:
pass
about.set_version(VERSION)
about.set_copyright("Copyright \u00A9 2010-2016 John Cheetham")
about.set_comments(
"jcchess is a program to play chess.")
about.set_authors(["John Cheetham"])
about.set_website(
"http://www.johncheetham.com/projects/jcchess/index.html")
about.set_logo(
GdkPixbuf.Pixbuf.new_from_file(
os.path.join(gv.jcchess.prefix, "images/logo.png")))
license = """jcchess is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
jcchess is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with jcchess. If not, see <http://www.gnu.org/licenses/>."""
about.set_license(license)
about.run()
about.destroy()
评论列表
文章目录