Пример #1
0
    def __init__(self, specto):
        self.specto = specto

        license_file_path = (os.path.join(get_path(category="doc"), "COPYING"))
        with open(license_file_path, "r") as license_file:
            license = license_file.read()

        authors_file_path = (os.path.join(get_path(category="doc"), "AUTHORS"))
        with open(authors_file_path, "r") as authors_file:
            # this is a hack, because gtk.AboutDialog expects a list, not a file
            authors = authors_file.readlines()

        logo = gtk.gdk.pixbuf_new_from_file(os.path.join(self.specto.PATH, "icons/specto_about.png"))

        # gtk.AboutDialog will detect if "translator-credits" is untranslated,
        # and hide the tab.
        translator_credits = _("translator-credits")

        #create tree
        self.about = gtk.AboutDialog()

        self.about.set_name("Specto")
        self.about.set_version(self.specto.VERSION)
        self.about.set_copyright("Copyright © Jean-François Fortin Tam & Wout Clymans")
        self.about.set_comments(_("Be notified of everything"))
        self.about.set_license(license)
        #self.wTree.set_wrap_license(license)
        gtk.about_dialog_set_url_hook(lambda about, url: show_webpage(url))
        self.about.set_website("http://specto.sourceforge.net")
        self.about.set_website_label(_("Specto's Website"))
        self.about.set_authors(authors)
        #self.about.set_documenters(documenters)
        #self.about.set_artists(artists)
        self.about.set_translator_credits(translator_credits)
        self.about.set_logo(logo)

        self.about.set_icon_from_file(self.specto.LOGO_PATH)

        self.about.connect("response", lambda d, r: self.close())

        self.about.show_all()
Пример #2
0
 def show_help(self, *args):
     """ Call the main function to show the help. """
     show_webpage("http://code.google.com/p/specto/w/list")
Пример #3
0
 def show_help(self, *args):
     """ Call the main function to show the help. """
     show_webpage("http://code.google.com/p/specto/w/list")