def action_about(self, *arg):
dialog = gtk.AboutDialog()
dialog.set_name(APP_TITLE)
try :
ver = subprocess.check_output(["dpkg-query", "--show", "--showformat='${Version}'", "nativecam"])
dialog.set_version(str(ver).strip("'"))
except :
dialog.set_version(APP_VERSION)
try :
data = open('/usr/share/doc/nativecam/copyright', 'r').read()
dialog.set_license(data)
except :
dialog.set_license(APP_LICENCE)
dialog.set_authors(APP_AUTHORS)
dialog.set_comments(APP_COMMENTS)
dialog.set_copyright(APP_COPYRIGHT)
dialog.set_website(HOME_PAGE)
dialog.run()
dialog.destroy()
评论列表
文章目录