def about_cb(self, b):
        # Create about dialog
        image_path = '.'
        about_dialog = gtk.AboutDialog()

        about_dialog.set_name('LDTP Editor')
        about_dialog.set_version('0.1.0')
        about_dialog.set_comments(
            'LDTP Editor is a lightweight text editor for\nLinux Desktop Testing Project'
        )
        about_dialog.set_copyright('Copyright \xc2\xa9 2005 Khasim Shaheed')

        gtk.about_dialog_set_url_hook(self.open_url, None)
        about_dialog.set_website_label('http://www.gnomebangalore.org/ldtp')

        about_dialog.set_authors(['Khasim Shaheed <*****@*****.**>'])

        if '/usr/lib/ldtpeditor' in sys.path:
            image_path = '/usr/lib/ldtpeditor'

        logo = gtk.gdk.pixbuf_new_from_file(image_path +
                                            '/ldtp-logo-small.png')
        about_dialog.set_logo(logo)

        about_dialog.show()
Exemplo n.º 2
0
    def __init__(self, parent):
        """Initialize an :class:`AboutDialog` object."""
        gtk.AboutDialog.__init__(self)
        gtk.about_dialog_set_url_hook(self._on_url_clicked)
        self.set_transient_for(parent)
        self.set_title(_("About Gaupol"))
        self.set_program_name("Gaupol")
        self.set_version(gaupol.__version__)
        self.set_copyright(u"Copyright \xa9 2005-2011 Osmo Salomaa")
        self.set_comments(_("Subtitle editor"))
        self.set_license(_license)
        self.set_wrap_license(True)
        self.set_website(gaupol.HOMEPAGE_URL)
        self.set_website_label(_("Gaupol Website"))
        self.set_authors(("Osmo Salomaa <*****@*****.**>",))
        self.set_artists(("Osmo Salomaa <*****@*****.**>",))
        self.set_logo_icon_name("gaupol")

        # Translators: This is a special message that shouldn't be translated
        # literally. It is used in the about dialog to give credits to the
        # translators. Thus, you should translate it to your name and email
        # address. You can also include other translators who have contributed
        # to this translation; in that case, please write them on separate
        # lines seperated by newlines (\n).
        self.set_translator_credits(_("translator-credits"))
Exemplo n.º 3
0
    def __init__(self, parent):
        gtk.AboutDialog.__init__(self)

        gtk.about_dialog_set_url_hook(common.url_hook)
        gtk.about_dialog_set_email_hook(common.email_hook)

        self.set_transient_for(parent)
        self.set_icon_from_file(os.path.join(const.IMAGEDIR, "icon_logo.png"))
        self.set_modal(True)
        self.set_property("skip-taskbar-hint", True)

        self.set_name(const.NAME)
        self.set_version(const.VERSION)
        self.set_copyright(const.COPYRIGHT)
        self.set_comments(const.DESCRIPTION)
        self.set_website(const.WEBSITE)
        self.set_website_label("Pigeon Planner website")
        self.set_authors(const.AUTHORS)
        self.set_artists(const.ARTISTS)
        self.set_translator_credits(_("translator-credits"))
        self.set_license(const.LICENSE)
        self.set_logo(
            gtk.gdk.pixbuf_new_from_file_at_size(
                os.path.join(const.IMAGEDIR, "icon_logo.png"), 80, 80))
        self.run()
        self.destroy()
Exemplo n.º 4
0
    def on_about_activate(self, *args):
        try:
            f = file('COPYING', 'r')
        except:
            f = None

        def closeAbout(widget, response_id):
            if response_id == gtk.RESPONSE_CANCEL:
                widget.destroy()

        gtk.about_dialog_set_url_hook(lambda *args:None)
        about = gtk.AboutDialog()
        about.set_name(self.controller.NAME)
        about.set_version(self.controller.VERSION)
        about.set_copyright(self.controller.COPYRIGHT)
        about.set_comments(self.controller.COMMENT)
        about.connect('response', closeAbout)

        if f == None:
            about.set_license(self.controller.LICENSE_FALLBACK)
        else:
            about.set_license(f.read())

        about.set_website(self.controller.WEBSITE)
        about.set_authors(self.controller.AUTHORS)
        about.set_translator_credits(_('translator-credits'))
        icon = self.controller.theme.getImage('login')
        about.set_icon(icon)
        about.set_logo(icon)
        about.run()
Exemplo n.º 5
0
    def _register_uri_handlers(self):
        """Register the URL and email handlers

        Use open and mailto from virtaal.support.openmailto
        """
        gtk.about_dialog_set_url_hook(self.on_url, "url")
        gtk.about_dialog_set_email_hook(self.on_url, "mail")
Exemplo n.º 6
0
    def __init__(self):
        super(AboutDialog, self).__init__()
        url_hook = lambda dialog, url, data: open_url(url)
        gtk.about_dialog_set_url_hook(url_hook, None)
        email_hook = lambda dialog, email, data: open_email(email)
        gtk.about_dialog_set_email_hook(email_hook, None)
        self.set_logo(gtk.gdk.pixbuf_new_from_file(get_image('diglib.svg')))
        self.set_name(about.NAME)
        self.set_program_name(about.NAME)
        self.set_version(about.VERSION)
        self.set_comments(about.DESCRIPTION)
        self.set_authors([about.AUTHOR])
        self.set_copyright(about.COPYRIGHT)
        self.set_wrap_license(True)
        self.set_license(
'This program 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 \
any later version.\n\n\
This program 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.\n\n\
You should have received a copy of the GNU General Public License along with \
this program. If not, see http://www.gnu.org/licenses/.')
Exemplo n.º 7
0
    def about_info(self, data=None):
        "Display the About dialog"
        about = gtk.AboutDialog()
        about.set_name("pySum")
        about.set_version(__version__)
        about.set_comments(_("A pygtk application for create and \
verify md5 and other checksum"))
        about.set_copyright("Copyright © 2008-2010 Daniel Fuentes B.")

        def openHomePage(widget, url, url2): # Para abrir el sitio
            import webbrowser
            webbrowser.open_new(url)

        gtk.about_dialog_set_url_hook(openHomePage, website)
        try:
            about.set_logo(gtk.gdk.pixbuf_new_from_file(self.icono))
        except:
            print "Error: no se puede cargar el icono: %s" % (self.icono)
        about.set_website(website)
        about.set_authors([authors])
        about.set_license(license)
        about.set_wrap_license(True) # Adapta el texto a la ventana

        about.run()
        about.destroy()
Exemplo n.º 8
0
    def show_about_dialog(self):
        global ICON_FILE
        self.about_dialog.set_name('Lunch')
        self.about_dialog.set_role('about')
        self.about_dialog.set_version(__version__)
        commentlabel = _(
            'Simple Process Launcher for Complex Launching Setup.')
        self.about_dialog.set_comments(commentlabel)
        self.about_dialog.set_copyright(
            _("Copyright 2009-2010 Society for Arts and Technology"))
        self.about_dialog.set_license(__license__)
        self.about_dialog.set_authors(
            ['Alexandre Quessy <*****@*****.**>'])
        self.about_dialog.set_documenters(['Simon Piette <*****@*****.**>'])
        self.about_dialog.set_artists(['Rocket000'])
        gtk.about_dialog_set_url_hook(self.show_website)
        self.about_dialog.set_website("http://svn.sat.qc.ca/trac/lunch")

        if not os.path.exists(ICON_FILE):
            log.warning("Could not find icon file %s." % (ICON_FILE))
        else:
            large_icon = gtk.gdk.pixbuf_new_from_file(ICON_FILE)
            self.about_dialog.set_logo(large_icon)

        # Connect to callbacks
        self.about_dialog.connect('response', self.destroy_about)
        self.about_dialog.connect('delete_event', self.destroy_about)
        self.about_dialog.connect("delete-event", self.destroy_about)
        self.about_dialog.show_all()
Exemplo n.º 9
0
    def show(self):
        dlg = gtk.AboutDialog()
        gtk.about_dialog_set_url_hook(self.on_url, None)
        dlg.set_version(self.klik.settings.version
                        )  # fixme (get this from proper location)
        dlg.set_name("klik")
        #icon = gtk.icon_theme_get_default().load_icon("application-x-application-cmg", 48, 0)
        icon = gtk.gdk.pixbuf_new_from_file(
            os.path.join(self.klik.sys_path, os.pardir, "share", "klik",
                         "klik-window.png")
        )  # fixme, use  gtk.window_set_default_icon_list()
        dlg.set_logo(icon)
        dlg.set_authors(self.klik.settings.authors)
        dlg.set_documenters(self.klik.settings.documenters)
        dlg.set_website(self.klik.settings.website)
        dlg.set_comments(
            '''Download and run software\n virtualized without installation\nusing compressed application images\n\nFor help, please visit\n#klik on irc.freenode.net'''
        )

        def close(w, res):
            if res == gtk.RESPONSE_CANCEL:
                w.destroy()

        dlg.connect("response", close)
        dlg.show()
Exemplo n.º 10
0
 def __init__(self,data_path = None, version = None):
     def url_hook(dialog, url):
         pytrainer.lib.webUtils.open_url_in_browser(url)
     # Available in PyGTK 2.6 and above
     gtk.about_dialog_set_url_hook(url_hook)     
     self.data_path = data_path
     self.version = version
Exemplo n.º 11
0
 def about(self, __event):
     """Create and show the about dialog"""
     if 'nt' != os.name and (2, 16, 6) != gtk.gtk_version:
         # workaround for broken GTK+
         # (https://bugs.launchpad.net/bleachbit/+bug/797012)
         gtk.about_dialog_set_url_hook(lambda dialog,
                                       link: GuiBasic.open_url(link, self.window, False))
     dialog = gtk.AboutDialog()
     dialog.set_comments(_("Program to clean unnecessary files"))
     dialog.set_copyright("Copyright (C) 2014 Andrew Ziem")
     try:
         dialog.set_license(open(license_filename).read())
     except:
         dialog.set_license(
             _("GNU General Public License version 3 or later.\nSee http://www.gnu.org/licenses/gpl-3.0.txt"))
     dialog.set_name(APP_NAME)
     # TRANSLATORS: Maintain the names of translators here.
     # Launchpad does this automatically for translations
     # typed in Launchpad. This is a special string shown
     # in the 'About' box.
     dialog.set_translator_credits(_("translator-credits"))
     dialog.set_version(APP_VERSION)
     dialog.set_website(APP_URL)
     dialog.set_transient_for(self.window)
     if appicon_path and os.path.exists(appicon_path):
         icon = gtk.gdk.pixbuf_new_from_file(appicon_path)
         dialog.set_logo(icon)
     dialog.run()
     dialog.hide()
Exemplo n.º 12
0
    def do_about(self, callback_action, widget):
        # about dialog
        dlg = gtk.AboutDialog()
        self.website = "http://tinkerhouse.net/shoebot/"
        self.authors = [
            "Dave Crossland <dave AT lab6.com>",
            "est <electronixtar AT gmail.com>",
            "Francesco Fantoni <francesco AT hv-a.com>",
            "Paulo Silva <nitrofurano AT gmail.com>",
            "Pedro Angelo <pangelo AT virii-labs.org>",
            "Ricardo Lafuente <ricardo AT sollec.org>",
            "Stuart Axon <stuaxo2 AT yahoo.com>",
            "Tetsuya Saito <t2psyto AT gmail.com>"
        ]
        gtk.about_dialog_set_url_hook(self.on_url, self.website)
        dlg.set_version("0.2")
        dlg.set_name("shoebot")
        # TODO: add license text
        dlg.set_license("GPLv3")
        dlg.set_authors(self.authors)
        dlg.set_website(self.website)

        def close(w, res):
            if res == gtk.RESPONSE_CANCEL:
                w.hide()

        dlg.connect("response", close)
        dlg.run()
Exemplo n.º 13
0
	def about_load(self, stats):
		self.about_dialog = gtk.AboutDialog()
		try:
			self.about_dialog.set_transient_for(self.parent_window)
			self.about_dialog.set_modal(True)
		except:
			pass
		self.about_dialog.set_name('Sonata')
		self.about_dialog.set_role('about')
		self.about_dialog.set_version(self.version)
		commentlabel = _('An elegant music client for MPD.')
		self.about_dialog.set_comments(commentlabel)
		if stats:
			self.about_dialog.set_copyright(self.statstext(stats))
		self.about_dialog.set_license(self.license)
		self.about_dialog.set_authors(['Scott Horowitz <*****@*****.**>', 'Tuukka Hastrup <*****@*****.**>'])
		self.about_dialog.set_artists(['Adrian Chromenko <*****@*****.**>\nhttp://oss.rest0re.org/'])
		self.about_dialog.set_translator_credits(translators)
		gtk.about_dialog_set_url_hook(self.show_website)
		self.about_dialog.set_website("http://sonata.berlios.de/")
		large_icon = gtk.gdk.pixbuf_new_from_file(self.icon_file)
		self.about_dialog.set_logo(large_icon)
		# Add button to show keybindings:
		shortcut_button = ui.button(text=_("_Shortcuts"))
		self.about_dialog.action_area.pack_start(shortcut_button)
		self.about_dialog.action_area.reorder_child(self.about_dialog.action_area.get_children()[-1], -2)
		# Connect to callbacks
		self.about_dialog.connect('response', self.about_close)
		self.about_dialog.connect('delete_event', self.about_close)
		shortcut_button.connect('clicked', self.about_shortcuts)
		self.about_dialog.show_all()
Exemplo n.º 14
0
    def show(self):
        dlg = gtk.AboutDialog()
        gtk.about_dialog_set_url_hook(self.on_url, None)
        dlg.set_version(self.klik.settings.version
                        )  # fixme (get this from proper location)
        dlg.set_name("klik")
        #icon = gtk.icon_theme_get_default().load_icon("application-x-extension-cmg", 48, 0)
        icon = gtk.gdk.pixbuf_new_from_file(
            os.path.join(self.klik.sys_path, os.pardir, "share", "klik",
                         "klik-window.png")
        )  # fixme, use  gtk.window_set_default_icon_list()
        dlg.set_logo(icon)
        dlg.set_authors([
            "Simon Peter <*****@*****.**>",
            "Kurt Pfeifle <*****@*****.**>",
            "Jason Taylor <*****@*****.**>",
            "Lionel Tricon <*****@*****.**>",
            "Niall Walsh <*****@*****.**>", "RazZziel <*****@*****.**",
            "", "Thanks to all testers and contributors",
            "in #klik on irc.freenode.net"
        ])
        dlg.set_documenters(["Kurt Pfeifle <*****@*****.**>"])
        dlg.set_website("http://klikclient.googlecode.com")
        dlg.set_comments(
            '''Download and run software\n virtualized without installation\nusing compressed application images\n\nFor help, please visit\n#klik on irc.freenode.net'''
        )

        def close(w, res):
            if res == gtk.RESPONSE_CANCEL:
                w.destroy()

        dlg.connect("response", close)
        dlg.show()
Exemplo n.º 15
0
    def __init__(self):
        super(AboutDialog, self).__init__()
        url_hook = lambda dialog, url, data: open_url(url)
        gtk.about_dialog_set_url_hook(url_hook, None)
        email_hook = lambda dialog, email, data: open_email(email)
        gtk.about_dialog_set_email_hook(email_hook, None)
        self.set_logo(gtk.gdk.pixbuf_new_from_file(get_image('diglib.svg')))
        self.set_name(about.NAME)
        self.set_program_name(about.NAME)
        self.set_version(about.VERSION)
        self.set_comments(about.DESCRIPTION)
        self.set_authors([about.AUTHOR])
        self.set_copyright(about.COPYRIGHT)
        self.set_wrap_license(True)
        self.set_license(
            'This program 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 \
any later version.\n\n\
This program 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.\n\n\
You should have received a copy of the GNU General Public License along with \
this program. If not, see http://www.gnu.org/licenses/.')
Exemplo n.º 16
0
    def on_about_menu_activate (self, *args):

        gtk.about_dialog_set_url_hook(self.open_url, "bogusbar")
        dlg = gtk.AboutDialog ()
        dlg.set_title (_("About Gnome Schedule"))
        dlg.set_name (_("Gnome Schedule"))
        dlg.set_version (config.getVersion())
        dlg.set_copyright (_("Copyright (c) %(year)s %(name)s.") % ({ 'year' : "2004-2015", 'name' : "Gaute Hope"}))
        #dlg.set_comments ()
        #dlg.set_license ()
        dlg.set_website ("http://gnome-schedule.sourceforge.net")
        dlg.set_website_label("http://gnome-schedule.sourceforge.net")
        dlg.set_authors (
            ["Gaute Hope <*****@*****.**>",
             "Philip Van Hoof <pvanhoof at gnome dot org>",
             "Kristof Vansant <de_lupus at pandora dot be>"]
            )
        dlg.set_documenters (
            ["Rodrigo Marcos Fombellida <*****@*****.**>"]
            )
        dlg.set_translator_credits (_("translator-credits"))
        dlg.set_logo (self.iconPixbuf)

        if (dlg.run() != gtk.RESPONSE_YES):
            dlg.destroy()
            del dlg
            return
        dlg.destroy()
        del dlg
Exemplo n.º 17
0
 def show_about_dialog(self):
     global ICON_FILE
     self.about_dialog.set_name('Lunch')
     self.about_dialog.set_role('about')
     self.about_dialog.set_version(__version__)
     commentlabel = _('Simple Process Launcher for Complex Launching Setup.')
     self.about_dialog.set_comments(commentlabel)
     self.about_dialog.set_copyright(_("Copyright 2009-2010 Society for Arts and Technology"))
     self.about_dialog.set_license(__license__)
     self.about_dialog.set_authors([
         'Alexandre Quessy <*****@*****.**>'
         ])
     self.about_dialog.set_documenters([
         'Simon Piette <*****@*****.**>'
         ])
     self.about_dialog.set_artists(['Rocket000'])
     gtk.about_dialog_set_url_hook(self.show_website)
     self.about_dialog.set_website("http://svn.sat.qc.ca/trac/lunch")
     
     if not os.path.exists(ICON_FILE):
         log.warning("Could not find icon file %s." % (ICON_FILE))
     else:
         large_icon = gtk.gdk.pixbuf_new_from_file(ICON_FILE)
         self.about_dialog.set_logo(large_icon)
     
     # Connect to callbacks
     self.about_dialog.connect('response', self.destroy_about)
     self.about_dialog.connect('delete_event', self.destroy_about)
     self.about_dialog.connect("delete-event", self.destroy_about)
     self.about_dialog.show_all()
Exemplo n.º 18
0
	def about_load(self, stats):
		self.about_dialog = gtk.AboutDialog()
		try:
			self.about_dialog.set_transient_for(self.parent_window)
			self.about_dialog.set_modal(True)
		except:
			pass
		self.about_dialog.set_name('Sonata')
		self.about_dialog.set_role('about')
		self.about_dialog.set_version(self.version)
		commentlabel = _('An elegant music client for MPD.')
		self.about_dialog.set_comments(commentlabel)
		if stats:
			self.about_dialog.set_copyright(self.statstext(stats))
		self.about_dialog.set_license(self.license)
		self.about_dialog.set_authors(['Scott Horowitz <*****@*****.**>', 'Tuukka Hastrup <*****@*****.**>', 'Stephen Boyd <*****@*****.**>'])
		self.about_dialog.set_artists(['Adrian Chromenko <*****@*****.**>\nhttp://oss.rest0re.org/'])
		self.about_dialog.set_translator_credits(translators)
		gtk.about_dialog_set_url_hook(self.show_website)
		self.about_dialog.set_website("http://sonata.berlios.de/")
		large_icon = gtk.gdk.pixbuf_new_from_file(self.icon_file)
		self.about_dialog.set_logo(large_icon)
		# Add button to show keybindings:
		shortcut_button = ui.button(text=_("_Shortcuts"))
		self.about_dialog.action_area.pack_start(shortcut_button)
		self.about_dialog.action_area.reorder_child(self.about_dialog.action_area.get_children()[-1], -2)
		# Connect to callbacks
		self.about_dialog.connect('response', self.about_close)
		self.about_dialog.connect('delete_event', self.about_close)
		shortcut_button.connect('clicked', self.about_shortcuts)
		self.about_dialog.show_all()
Exemplo n.º 19
0
			def about(*args):
				import webbrowser
				global about_dialog, GPL2
				if about_dialog:
					about_dialog.show()
					about_dialog.present()
					return
				dialog = gtk.AboutDialog()
				def on_website_hook(dialog, web, *args):
					''' called when the website item is selected '''
					webbrowser.open(SITE_URL)
				def on_email_hook(dialog, mail, *args):
					webbrowser.open("mailto://[email protected]")
				gtk.about_dialog_set_url_hook(on_website_hook)
				gtk.about_dialog_set_email_hook(on_email_hook)
				dialog.set_name("Xpra")
				from xpra import __version__
				dialog.set_version(__version__)
				dialog.set_copyright('Copyright (c) 2012, Nagafix Ltd')
				dialog.set_authors(('Antoine Martin <*****@*****.**>',''))
				dialog.set_license(str(GPL2))
				dialog.set_website(SITE_URL)
				dialog.set_website_label(SITE_DOMAIN)
				dialog.set_logo(get_icon("xpra.png"))
				dialog.set_program_name(APPLICATION_NAME)
				def response(*args):
					dialog.destroy()
					global about_dialog
					about_dialog = None
				dialog.connect("response", response)
				about_dialog = dialog
				dialog.show()
Exemplo n.º 20
0
	def plugin_about(self, _widget):
		plugin = self.plugin_get_selected()
		iconpb = self.plugin_get_icon_pixbuf(plugin)
		
		about_text = plugin.longname + "\n" + plugin.author + "\n"
		if len(plugin.author_email) > 0:
			about_text += "<" + plugin.author_email + ">"
		
		self.about_dialog = gtk.AboutDialog()
		self.about_dialog.set_name(plugin.longname)
		self.about_dialog.set_role('about')
		self.about_dialog.set_version(plugin.version_string)
		if len(plugin.description.strip()) > 0:
			self.about_dialog.set_comments(plugin.description)
		if len(plugin.author.strip()) > 0:
			author = plugin.author
			if len(plugin.author.strip()) > 0:
				author += ' <' + plugin.author_email + '>'
			self.about_dialog.set_authors([author])
		if len(plugin.url.strip()) > 0:
			gtk.about_dialog_set_url_hook(self.plugin_show_website)
			self.about_dialog.set_website(plugin.url)
		self.about_dialog.set_logo(iconpb)

		self.about_dialog.connect('response', self.plugin_about_close)
		self.about_dialog.connect('delete_event', self.plugin_about_close)
		self.about_dialog.show_all()
Exemplo n.º 21
0
def show_about_dialog(app_name, run=True):
    def uri_open(uri):
        Popen(["xdg-open", uri], stdout=PIPE)

    def email_hook(dialog, email, black_hole):
        uri_open("mailto:" + email)

    def url_hook(dialog, url, black_hole):
        uri_open(url)

    gtk.about_dialog_set_email_hook(email_hook, None)
    gtk.about_dialog_set_url_hook(url_hook, None)

    about = gtk.AboutDialog()
    about.set_name(app_name)
    about.set_version(VERSION)
    about.set_translator_credits(_("translator-credits"))
    about.set_copyright("Copyright \xc2\xa9 2008 Valmantas Palikša\n" "Copyright \xc2\xa9 2008 Tadas Dailyda")
    about.set_comments(_("Blueman is a GTK based Bluetooth manager"))
    about.set_website(WEBSITE)
    about.set_icon(get_icon("blueman"))
    about.set_logo(get_icon("blueman", 48))
    authors = ["Valmantas Palikša <*****@*****.**>", "Tadas Dailyda <*****@*****.**>"]
    about.set_authors(authors)
    if run:
        about.run()
        about.destroy()
    else:
        return about
Exemplo n.º 22
0
    def acerca_de(self):
        """
        Calcado de menu.py. Modificado ligeramente para hacerlo funcionar aquí.
        """
        from formularios.menu import __version__
        from utils.ui import launch_browser_mailer
        from framework.configuracion import ConfigConexion

        gtk.about_dialog_set_email_hook(launch_browser_mailer, 'email')
        gtk.about_dialog_set_url_hook(launch_browser_mailer, 'web')
        vacerca = gtk.AboutDialog()
        vacerca.set_name('CICAN')
        vacerca.set_version(__version__)
        vacerca.set_comments('Software de gestión del Centro de Investigadión de Carreteras de ANdalucía')
        vacerca.set_authors(
            ['Francisco José Rodríguez Bogado <*****@*****.**>', 
             'Algunas partes del código por: Diego Muñoz Escalante <*****@*****.**>'])
        config = ConfigConexion()
        logo = gtk.gdk.pixbuf_new_from_file(
            os.path.join('imagenes', config.get_logo()))
        vacerca.set_logo(logo)
        fichero_licencia = os.path.join(
                            os.path.dirname(__file__), "..", 'COPYING')
        try:
            content_licencia = open(fichero_licencia).read()
        except IOError:
            content_licencia = open("COPYING").read()
        vacerca.set_license(content_licencia)
        vacerca.set_website('http://informatica.novaweb.es')
        vacerca.set_artists(['Iconos gartoon por Kuswanto (a.k.a. Zeus) <*****@*****.**>'])
        vacerca.set_copyright('Copyright 2009-2010  Francisco José Rodríguez Bogado.')
        vacerca.run()
        vacerca.destroy()
Exemplo n.º 23
0
def about(*args):
    license = """
            This program 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 2 of the License, or
            (at your option) any later version.

            This program 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 this program; if not, write to the Free Software
            Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
            """
    gtk.about_dialog_set_url_hook(lambda dialog, url: url_show(url))
    aboutdlg = gtk.AboutDialog()
    aboutdlg.set_logo(getPixbuf("smart"))
    aboutdlg.set_version(VERSION)
    aboutdlg.set_name(NAME)
    aboutdlg.set_copyright("2008 Canonical, Inc.")
    aboutdlg.set_authors(AUTHORS)
    aboutdlg.set_license(license)
    aboutdlg.run()
    aboutdlg.destroy()
    return
Exemplo n.º 24
0
    def openAbout(self, widget, data=None):

        gtk.about_dialog_set_url_hook(self.openHomepage)

        about = gtk.AboutDialog()

        about.set_name("")
        about.set_version(self.pymp.versionString)

        about.set_authors([
            "Jay Dolan <*****@*****.**>",
            "Lucas Hazel <*****@*****.**>"
        ])

        about.set_artists(["Jay Dolan <*****@*****.**>"])

        about.set_website("http://jdolan.dyndns.org/pymp")

        about.set_logo(self.pymp.getIcon())

        about.show()
        about.run()
        about.hide()
        about.destroy()
        return True
Exemplo n.º 25
0
 def _aboutCb(self, unused_action):
     abt = gtk.AboutDialog()
     abt.set_name(APPNAME)
     abt.set_version("v%s" % pitivi_version)
     gtk.about_dialog_set_url_hook(self._showWebsiteCb)
     abt.set_website("http://www.pitivi.org/")
     authors = ["Edward Hervey <*****@*****.**>",
                "Alessandro Decina <*****@*****.**>",
                "Brandon Lewis <*****@*****.**> (UI)",
                "",
                _("Contributors:"),
                "Christophe Sauthier <*****@*****.**> (i18n)",
                "Laszlo Pandy <*****@*****.**> (UI)",
                "Ernst Persson  <*****@*****.**>",
                "Richard Boulton <*****@*****.**>",
                "Thibaut Girka <*****@*****.**> (UI)",
                "Jeff Fortin <*****@*****.**> (UI)",
                "Johan Dahlin <*****@*****.**> (UI)",
                "Luca Della Santina <*****@*****.**>",
                "Thijs Vermeir <*****@*****.**>",
                "Sarath Lakshman <*****@*****.**>"]
     abt.set_authors(authors)
     abt.set_license(_("GNU Lesser General Public License\n"
                       "See http://www.gnu.org/copyleft/lesser.html for more details"))
     abt.set_icon_name("pitivi")
     abt.set_logo_icon_name("pitivi")
     abt.connect("response", self._aboutResponseCb)
     abt.show()
Exemplo n.º 26
0
 def _aboutCb(self, unused_action):
     abt = gtk.AboutDialog()
     abt.set_name(APPNAME)
     abt.set_version("v%s" % pitivi_version)
     gtk.about_dialog_set_url_hook(self._showWebsiteCb)
     abt.set_website(APPURL)
     authors = ["Edward Hervey <*****@*****.**>",
                "Alessandro Decina <*****@*****.**>",
                "Brandon Lewis <*****@*****.**> (UI)",
                "",
                _("Contributors:"),
                "Christophe Sauthier <*****@*****.**> (i18n)",
                "Laszlo Pandy <*****@*****.**> (UI)",
                "Ernst Persson  <*****@*****.**>",
                "Richard Boulton <*****@*****.**>",
                "Thibaut Girka <*****@*****.**> (UI)",
                "Jean-François Fortin Tam <*****@*****.**> (UI)",
                "Johan Dahlin <*****@*****.**> (UI)",
                "Luca Della Santina <*****@*****.**>",
                "Thijs Vermeir <*****@*****.**>",
                "Sarath Lakshman <*****@*****.**>"]
     abt.set_authors(authors)
     abt.set_license(_("GNU Lesser General Public License\n"
                       "See http://www.gnu.org/copyleft/lesser.html for more details"))
     abt.set_icon_name("pitivi")
     abt.set_logo_icon_name("pitivi")
     abt.connect("response", self._aboutResponseCb)
     abt.show()
Exemplo n.º 27
0
def show_about_dialog(app_name, run=True):
    def uri_open(uri):
        Popen(['xdg-open', uri], stdout=PIPE)

    def email_hook(dialog, email, black_hole):
        uri_open('mailto:' + email)

    def url_hook(dialog, url, black_hole):
        uri_open(url)

    gtk.about_dialog_set_email_hook(email_hook, None)
    gtk.about_dialog_set_url_hook(url_hook, None)

    about = gtk.AboutDialog()
    about.set_name(app_name)
    about.set_version(VERSION)
    about.set_translator_credits(_("translator-credits"))
    about.set_copyright('Copyright \xc2\xa9 2008 Valmantas Palikša\n'\
         'Copyright \xc2\xa9 2008 Tadas Dailyda')
    about.set_comments(_('Blueman is a GTK based Bluetooth manager'))
    about.set_website(WEBSITE)
    about.set_icon(get_icon('blueman'))
    about.set_logo(get_icon('blueman', 48))
    authors = [
        'Valmantas Palikša <*****@*****.**>',
        'Tadas Dailyda <*****@*****.**>'
    ]
    about.set_authors(authors)
    if run:
        about.run()
        about.destroy()
    else:
        return about
Exemplo n.º 28
0
Arquivo: ui.py Projeto: krig/jamaendo
    def create_menu(self):
        self.menu = hildon.AppMenu()

        player = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        player.set_label("Open player")
        player.connect("clicked", self.on_player)
        self.menu.append(player)

        player = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        player.set_label("Favorites")
        player.connect("clicked", self.on_favorites)
        self.menu.append(player)

        player = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        player.set_label("Playlists")
        player.connect("clicked", self.on_playlists)
        self.menu.append(player)

        player = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        player.set_label("Settings")
        player.connect("clicked", self.on_settings)
        self.menu.append(player)

        menu_about = hildon.GtkButton(gtk.HILDON_SIZE_AUTO)
        menu_about.set_label("About")
        menu_about.connect("clicked", self.show_about, self.window)
        self.menu.append(menu_about)
        gtk.about_dialog_set_url_hook(self.open_link, None)

        self.menu.show_all()
        self.window.set_app_menu(self.menu)
def about(*args):
    license = """
            This program 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 2 of the License, or
            (at your option) any later version.

            This program 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 this program; if not, write to the Free Software
            Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
            """
    gtk.about_dialog_set_url_hook(lambda dialog, url: url_show(url))
    aboutdlg = gtk.AboutDialog()
    aboutdlg.set_logo(getPixbuf("smart"))
    aboutdlg.set_version(VERSION)
    aboutdlg.set_name(NAME)
    aboutdlg.set_copyright("2008 Canonical, Inc.")
    aboutdlg.set_authors(AUTHORS)
    aboutdlg.set_license(license)
    aboutdlg.run()
    aboutdlg.destroy()
    return
Exemplo n.º 30
0
Arquivo: menu.py Projeto: sepen/kietol
    def openAbout(self, widget, data=None):

        gtk.about_dialog_set_url_hook(self.openHomepage)

        about = gtk.AboutDialog()

        about.set_name("")
        about.set_version(self.kietol.versionString)

        about.set_authors([
            "Jose V Beneyto, <*****@*****.**>",
            "Victor Martinez, <*****@*****.**>"
        ])

        about.set_artists(["-- no artist --"])

        about.set_website("http://trac.mikeux.dyndns.org/kietol")

        about.set_logo(self.kietol.getIcon())

        about.show()
        about.run()
        about.hide()
        about.destroy()
        return True
Exemplo n.º 31
0
    def __init__(self):
        gtk.about_dialog_set_url_hook(self.open_link)
        self.dialog = gtk.AboutDialog()
        self.dialog.set_name(_('Irssi Notifier'))
        self.dialog.set_version(irssinotifier.__version__)
        # TRANSLATOR: No need to translate copyright
        self.dialog.set_copyright(_('2007 © UfSoft.org'))
        self.dialog.set_comments(_('Irssi Real-Time Remote Visual '
                                   'Notifications'))
        self.dialog.set_license(irssinotifier.__license_text__)
        self.dialog.set_website(irssinotifier.__url__)
        self.dialog.set_website_label(_('Go To Development Site'))
        self.dialog.set_authors([
            'Pedro Algarvio <*****@*****.**>',
            'David Durrleman <*****@*****.**>'
        ])
        self.dialog.set_translator_credits(
            'pt_PT: Pedro Algarvio <*****@*****.**>\n'
            'fr_FR: David Durrleman <*****@*****.**>'
        )
        img = gtk.gdk.pixbuf_new_from_file(
            os.path.join(os.path.dirname(__file__), 'data', 'irssi.png')
        )
        self.dialog.set_logo(img)
        self.dialog.set_icon(img)

        self.dialog.connect("response", lambda d, r: self.hide_about())
Exemplo n.º 32
0
    def about(self, widget):
        """Create/Show about dialog for this app."""
        dlg = gtk.AboutDialog()
        gtk.about_dialog_set_url_hook(self.website_open, None)
        # add baisc info
        dlg.set_name(screenlets.APP_NAME)
        dlg.set_comments(_(screenlets.COMMENTS))
        dlg.set_version(screenlets.VERSION)
        dlg.set_copyright(screenlets.COPYRIGHT)
        dlg.set_authors(screenlets.AUTHORS)
        dlg.set_website(screenlets.WEBSITE)
        dlg.set_website_label(screenlets.WEBSITE)
        dlg.set_license(
            _('This application is released under the GNU General Public License v3 (or, at your option, any later version). You can find the full text of the license under http://www.gnu.org/licenses/gpl.txt. By using, editing and/or distributing this software you agree to the terms and conditions of this license. Thank you for using free software!'
              ))
        dlg.set_wrap_license(True)
        dlg.set_documenters(screenlets.DOCUMENTERS)
        dlg.set_artists(screenlets.ARTISTS)
        dlg.set_translator_credits(screenlets.TRANSLATORS)
        # add logo

        icontheme = gtk.icon_theme_get_default()
        logo = icontheme.load_icon("screenlets", 128, 0)
        if logo:
            dlg.set_logo(logo)
        # run/destroy
        dlg.run()
        dlg.destroy()
    def on_about_clicked(self, widget, data=None):
        gtk.about_dialog_set_url_hook(self.click_website)

        app_name = "Natural Scrolling"
        about = gtk.AboutDialog()
        about.set_name(app_name)
        about.set_version(appliation_version())
        about.set_icon(
            gtk.gdk.pixbuf_new_from_file(get_data_path() +
                                         "/media/naturalscrolling.svg"))
        about.set_logo(
            gtk.gdk.pixbuf_new_from_file(get_data_path() +
                                         "/media/naturalscrolling.svg"))
        about.set_website(appliation_website())
        about.set_website_label("%s Website" % app_name)
        about.set_authors(["Charalampos Emmanouilidis <*****@*****.**>",
                           "Guillaume Hain <*****@*****.**>"])
        about.set_copyright("Copyright © 2011 Charalampos Emmanouilidis")
        about.set_wrap_license(True)
        about.set_license(("%s 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.\n\n%s 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.\n\n"
            "You should have received a copy of the GNU General Public "
            "License along with %s; if not, write to the Free Software "
            "Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, "
            "MA 02110-1301, USA") % (app_name, app_name, app_name))
        about.run()
        about.destroy()
Exemplo n.º 34
0
    def _register_uri_handlers(self):
        """Register the URL and email handlers

        Use open and mailto from virtaal.support.openmailto
        """
        gtk.about_dialog_set_url_hook(self.on_url, "url")
        gtk.about_dialog_set_email_hook(self.on_url, "mail")
Exemplo n.º 35
0
 def on_menu_about_activate(self, *extra):
     gtk.about_dialog_set_url_hook(lambda dialog, uri: misc.open_uri(uri))
     about = gtk.glade.XML(paths.ui_dir("meldapp.glade"), "about").get_widget("about")
     about.props.version = version
     about.set_transient_for(self.widget)
     about.run()
     about.hide()
Exemplo n.º 36
0
	def plugin_about(self, _widget):
		plugin = self.plugin_get_selected()
		iconpb = self.plugin_get_icon_pixbuf(plugin)
		
		about_text = plugin.longname + "\n" + plugin.author + "\n"
		if len(plugin.author_email) > 0:
			about_text += "<" + plugin.author_email + ">"
		
		self.about_dialog = gtk.AboutDialog()
		self.about_dialog.set_name(plugin.longname)
		self.about_dialog.set_role('about')
		self.about_dialog.set_version(plugin.version_string)
		if len(plugin.description.strip()) > 0:
			self.about_dialog.set_comments(plugin.description)
		if len(plugin.author.strip()) > 0:
			author = plugin.author
			if len(plugin.author.strip()) > 0:
				author += ' <' + plugin.author_email + '>'
			self.about_dialog.set_authors([author])
		if len(plugin.url.strip()) > 0:
			gtk.about_dialog_set_url_hook(self.plugin_show_website)
			self.about_dialog.set_website(plugin.url)
		self.about_dialog.set_logo(iconpb)

		self.about_dialog.connect('response', self.plugin_about_close)
		self.about_dialog.connect('delete_event', self.plugin_about_close)
		self.about_dialog.show_all()
Exemplo n.º 37
0
def get_about_dialog():
    """Returns an AboutDialog with all the necessary info"""
    
    _MAX_WIDTH = 20
    wrapped_name = fill(consts.APP_LONG_NAME, _MAX_WIDTH)
    
    abt = gtk.AboutDialog()
    
    # attach an icon
    icon = abt.render_icon(gtk.STOCK_ABOUT, gtk.ICON_SIZE_MENU)
    abt.set_icon(icon)
    
    filepath = os.path.join(consts.IMAGES_DIR, 'VF_logo.png')
    logo = gtk.gdk.pixbuf_new_from_file(filepath)
    
    
    abt.set_logo(logo)
    gtk.about_dialog_set_url_hook(lambda abt, url: url_show(url))
    gtk.about_dialog_set_email_hook(lambda d, e: url_show("mailto:%s" % e))
    
    if gtk.pygtk_version >= (2, 11, 0):
        abt.set_program_name(wrapped_name)
    else:
        abt.set_name(wrapped_name)
    
    abt.set_version(consts.APP_VERSION)
    abt.set_copyright(_('Vodafone Spain S.A.'))
    abt.set_authors(consts.APP_AUTHORS)
    abt.set_documenters(consts.APP_DOCUMENTERS)
    abt.set_artists(consts.APP_ARTISTS)
    abt.set_website(consts.APP_URL)
    
    # XXX: pango here? I tried w/o success
    abt.set_website_label('http://forge.vodafonebetavine.net/..')
    
    trans_credits = _('translated to $LANG by $translater')
    # only enable them when necessary
    if trans_credits != 'translated to $LANG by $translater':
        abt.set_translator_credits(trans_credits)
    
    _license = """
Vodafone Mobile Connect Card driver for Linux
Copyright (C) 2006-2007 Vodafone España S.A.

This program 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 2 of the License, or
(at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"""
    abt.set_license(_license)
    
    return abt
Exemplo n.º 38
0
 def acerca_de(self):
     gtk.about_dialog_set_email_hook(self.launch_browser_mailer, 'email')
     gtk.about_dialog_set_url_hook(self.launch_browser_mailer, 'web')
     vacerca = gtk.AboutDialog()
     vacerca.set_name('Geotex-INN')
     vacerca.set_version(__version__)
     vacerca.set_comments('Software ERP para Geotexan')
     vacerca.set_authors(['Francisco José Rodríguez Bogado '
                          '<*****@*****.**>',
                          'Diego Muñoz Escalante <*****@*****.**>'])
     config = ConfigConexion()
     logo = gtk.gdk.pixbuf_new_from_file(os.path.join(
             os.path.dirname(os.path.realpath(__file__)),
             '..', 'imagenes', config.get_logo()))
     logo = escalar_a(300, 200, logo)
     vacerca.set_logo(logo)
     vacerca.set_license(open(os.path.join(
             os.path.dirname(os.path.realpath(__file__)),
             '..', 'gpl.txt')).read())
     vacerca.set_website('http://ginn.sf.net')
     vacerca.set_artists(['Iconos gartoon por Kuswanto (a.k.a. Zeus) '
                          '<*****@*****.**>'])
     vacerca.set_copyright('Copyright 2005-2014  Francisco José Rodríguez'
                           ' Bogado, Diego Muñoz Escalante.')
     vacerca.run()
     vacerca.destroy()
Exemplo n.º 39
0
    def show_about(self, widget):
        gtk.about_dialog_set_url_hook(self.click_website)

        about = gtk.AboutDialog()
        about.set_transient_for(self)
        about.set_name(APP)
        about.set_version(VERSION)
        about.set_website("http://ubuntu-tweak.com")
        about.set_website_label(_('Ubuntu Tweak Website'))
        about.set_logo(icon.get_from_name('ubuntu-tweak', size=128))
        about.set_comments(_("Ubuntu Tweak is a tool for Ubuntu that makes it easy to configure your system and desktop settings."))
        about.set_authors(["TualatriX <*****@*****.**>", "",
            _("Contributors of 2007"),
            "Super Jamie <*****@*****.**>", "",
            _("Contributors of 2008"),
            "Lee Jarratt <*****@*****.**>", "",
            _("Contributors of 2009"),
            "Iven <*****@*****.**>",
            "Dig Ge <*****@*****.**>", "",
            _("Contributors of 2010"),
            "lfeng <*****@*****.**>",
            "Jonathan Lumb <*****@*****.**>",
            "Stepan Martiyanov <*****@*****.**>",
            "muzuiget <*****@*****.**>",
            ])
        about.set_copyright("Copyright © 2007-2010 TualatriX")
        about.set_wrap_license(True)
        about.set_license("Ubuntu Tweak 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 2 of the License, or (at your option) any later version.\n\
Ubuntu Tweak 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.\n\
You should have received a copy of the GNU General Public License along with Ubuntu Tweak; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA")
        about.set_translator_credits(_("translator-credits"))
        about.set_artists(["m.Sharp <*****@*****.**> Logo and Banner", 
                           "Medical-Wei <*****@*****.**> Artwork of 0.1"])
        about.run()
        about.destroy()
Exemplo n.º 40
0
    def on_about_activate(self, *args):
        try:
            f = file('COPYING', 'r')
        except:
            f = None

        def closeAbout(widget, response_id):
            if response_id == gtk.RESPONSE_CANCEL:
                widget.destroy()

        gtk.about_dialog_set_url_hook(lambda *args:None)
        about = gtk.AboutDialog()
        about.set_name(self.controller.NAME)
        about.set_version(self.controller.VERSION)
        about.set_copyright(self.controller.COPYRIGHT)
        about.set_comments(self.controller.COMMENT)
        about.connect('response', closeAbout)

        if f == None:
            about.set_license(self.controller.LICENSE_FALLBACK)
        else:
            about.set_license(f.read())

        about.set_website(self.controller.WEBSITE)
        about.set_authors(self.controller.AUTHORS)
        about.set_translator_credits(_('translator-credits'))
        icon = self.controller.theme.getImage('login')
        about.set_icon(icon)
        about.set_logo(icon)
        about.run()
Exemplo n.º 41
0
	def about(self, widget):
		
		"""Create/Show about dialog for this app."""
		dlg = gtk.AboutDialog()
		gtk.about_dialog_set_url_hook(self.website_open, None)
		# add baisc info
		dlg.set_name(screenlets.APP_NAME)
		dlg.set_comments(_(screenlets.COMMENTS))
		dlg.set_version(screenlets.VERSION)
		dlg.set_copyright(screenlets.COPYRIGHT)
		dlg.set_authors(screenlets.AUTHORS)
		dlg.set_website(screenlets.WEBSITE)
		dlg.set_website_label(screenlets.WEBSITE)
		dlg.set_license(_('This application is released under the GNU General Public License v3 (or, at your option, any later version). You can find the full text of the license under http://www.gnu.org/licenses/gpl.txt. By using, editing and/or distributing this software you agree to the terms and conditions of this license. Thank you for using free software!'))
		dlg.set_wrap_license(True)
		dlg.set_documenters(screenlets.DOCUMENTERS)
		dlg.set_artists(screenlets.ARTISTS)
		dlg.set_translator_credits(screenlets.TRANSLATORS)
		# add logo

		icontheme = gtk.icon_theme_get_default()
		logo = icontheme.load_icon("screenlets", 128, 0)
		if logo:
			dlg.set_logo(logo)
		# run/destroy
		dlg.run()
		dlg.destroy()
Exemplo n.º 42
0
    def on_about_menu_activate(self, *args):

        gtk.about_dialog_set_url_hook(self.open_url, "bogusbar")
        dlg = gtk.AboutDialog()
        dlg.set_title(_("About Gnome Schedule"))
        dlg.set_name(_("Gnome Schedule"))
        dlg.set_version(config.getVersion())
        dlg.set_copyright(
            _("Copyright (c) %(year)s %(name)s.") % ({
                'year': "2004-2013",
                'name': "Gaute Hope"
            }))
        #dlg.set_comments ()
        #dlg.set_license ()
        dlg.set_website("http://gnome-schedule.sourceforge.net")
        dlg.set_website_label("http://gnome-schedule.sourceforge.net")
        dlg.set_authors([
            "Gaute Hope <*****@*****.**>",
            "Philip Van Hoof <pvanhoof at gnome dot org>",
            "Kristof Vansant <de_lupus at pandora dot be>"
        ])
        dlg.set_documenters(
            ["Rodrigo Marcos Fombellida <*****@*****.**>"])
        dlg.set_translator_credits(_("translator-credits"))
        dlg.set_logo(self.iconPixbuf)

        if (dlg.run() != gtk.RESPONSE_YES):
            dlg.destroy()
            del dlg
            return
        dlg.destroy()
        del dlg
Exemplo n.º 43
0
 def __init__(self, application):
     """Constructs the AboutView."""
     self.application = application
     about_controller = self.application.get_about_controller()
     about_dialog_glade = os.path.join(
         constants.GUI_DIRECTORY, 'about_dialog.glade')
     
     # This must be set before the window is created or
     # the url will not be clickable.
     gtk.about_dialog_set_url_hook(
         about_controller.on_about_dialog_url_clicked)
     
     View.__init__(
         self, about_controller, 
         about_dialog_glade, 'about_dialog', 
         None, False)
         
     self.log = logging.getLogger(self.__class__.__name__)
     
     # Can't do this in constructor as main_view has multiple
     # top-level widgets
     self['about_dialog'].set_transient_for(
         self.application.get_main_view()['scan_window'])
     
     self['about_dialog'].set_version('%i.%i.%i' % constants.VERSION)
             
     self.application.get_about_controller().register_view(self)
     
     self.log.debug('Created.')
Exemplo n.º 44
0
    def open_about_window(self, menuitem):
        gtk.about_dialog_set_url_hook(self._open_url, None)
        gtk.about_dialog_set_email_hook(self._open_email, None)
        about = gtk.AboutDialog()

        about.set_name("Rounder")
        about.set_version("0.0.1")
        about.set_copyright("Copyright © 2008 Devan Goodwin & James Bowes")
        about.set_comments("Poker for the GNOME Desktop")
        # XXX Put the full license in here
        about.set_license("GPLv2")
        about.set_website("http://dangerouslyinc.com")
        about.set_website_label("http://dangerouslyinc.com")
        about.set_authors(('Devan Goodwin <*****@*****.**>',
            'James Bowes <*****@*****.**>',
            'Kenny MacDermid <*****@*****.**>'))
        about.set_artists(('Anette Goodwin <*****@*****.**>',
            'James Bowes <*****@*****.**>'))
        about.set_logo(gtk.gdk.pixbuf_new_from_file(
            find_file_on_path(ROUNDER_LOGO_FILE)))

        about.set_icon_from_file(find_file_on_path(ROUNDER_ICON_FILE))

        about.connect('response', lambda x, y: about.destroy())
        about.show_all()
Exemplo n.º 45
0
def get_about_dialog():
    """Returns an AboutDialog with all the necessary info"""

    _MAX_WIDTH = 20
    wrapped_name = fill(consts.APP_LONG_NAME, _MAX_WIDTH)

    abt = gtk.AboutDialog()

    # attach an icon
    icon = abt.render_icon(gtk.STOCK_ABOUT, gtk.ICON_SIZE_MENU)
    abt.set_icon(icon)

    filepath = os.path.join(consts.IMAGES_DIR, 'VF_logo.png')
    logo = gtk.gdk.pixbuf_new_from_file(filepath)

    abt.set_logo(logo)
    gtk.about_dialog_set_url_hook(lambda abt, url: url_show(url))
    gtk.about_dialog_set_email_hook(lambda d, e: url_show("mailto:%s" % e))

    if gtk.pygtk_version >= (2, 11, 0):
        abt.set_program_name(wrapped_name)
    else:
        abt.set_name(wrapped_name)

    abt.set_version(consts.APP_VERSION)
    abt.set_copyright(_('Vodafone Spain S.A.'))
    abt.set_authors(consts.APP_AUTHORS)
    abt.set_documenters(consts.APP_DOCUMENTERS)
    abt.set_artists(consts.APP_ARTISTS)
    abt.set_website(consts.APP_URL)

    # XXX: pango here? I tried w/o success
    abt.set_website_label('http://forge.vodafonebetavine.net/..')

    trans_credits = _('translated to $LANG by $translater')
    # only enable them when necessary
    if trans_credits != 'translated to $LANG by $translater':
        abt.set_translator_credits(trans_credits)

    _license = """
Vodafone Mobile Connect Card driver for Linux
Copyright (C) 2006-2007 Vodafone España S.A.

This program 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 2 of the License, or
(at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"""
    abt.set_license(_license)

    return abt
Exemplo n.º 46
0
    def __init__(self, data_path=None, version=None):
        def url_hook(dialog, url):
            pytrainer.lib.webUtils.open_url_in_browser(url)

        # Available in PyGTK 2.6 and above
        gtk.about_dialog_set_url_hook(url_hook)
        self.data_path = data_path
        self.version = version
Exemplo n.º 47
0
 def __init__(self):
     """Object constructor.
     
     Calls base constructor and sets hooks for e-mail and url.
     """
     super(AboutDialog, self).__init__()
     gtk.about_dialog_set_email_hook(self.email_hook, None)
     gtk.about_dialog_set_url_hook(self.url_hook, None)
Exemplo n.º 48
0
 def on_menu_about_activate(self, *extra):
     gtk.about_dialog_set_url_hook(lambda dialog, uri: misc.open_uri(uri))
     about = gtk.glade.XML(paths.ui_dir("meldapp.glade"),
                           "about").get_widget("about")
     about.props.version = version
     about.set_transient_for(self.widget)
     about.run()
     about.hide()
Exemplo n.º 49
0
	def connectLinkHooks(self):
		## Make hooks for opening URLs and e-mails.
		if (useful.checkLinkHandler):
			gtk.about_dialog_set_email_hook(self.URLorMailOpen, 'mail')
			gtk.about_dialog_set_url_hook(self.URLorMailOpen, 'url')
		else:
			# xdg-open doesn't exist.
			print _("%s not found, links & e-mail addresses will not be clickable" % useful.linkHandler)
Exemplo n.º 50
0
    def main(self, appklass):

        default_log_level = logging.WARNING
        if 'HOTVTE_DEBUG' in os.environ:
            default_log_level = logging.DEBUG

        import hotwire.logutil
        mods = os.environ.get('HOTVTE_DEBUG_MODULES', '')
        if mods:
            mods = mods.split(',')
        else:
            mods = []
        hotwire.logutil.init(default_log_level, mods, '')

        _logger.debug("logging initialized")

        locale.setlocale(locale.LC_ALL, '')
        import gettext
        gettext.install('hotwire')

        gobject.threads_init()

        app = appklass()
        remote = app.get_remote()
        remote.single_instance()

        def on_about_dialog_url(dialog, link):
            import webbrowser
            webbrowser.open(link)

        gtk.about_dialog_set_url_hook(on_about_dialog_url)
        gtk.rc_parse_string('''
style "hotwire-tab-close" {
  xthickness = 0
  ythickness = 0
}
widget "*hotwire-tab-close" style "hotwire-tab-close"
''')
        if os.getenv('HOTWIRE_UNINSTALLED'):
            theme = gtk.icon_theme_get_default()
            imgpath = os.path.join(os.getenv('HOTWIRE_UNINSTALLED'), 'images')
            _logger.debug("appending to icon theme: %s", imgpath)
            theme.append_search_path(imgpath)

        factory = app.get_factory()
        factory.connect('shutdown', app.on_shutdown)
        w = factory.create_initial_window()
        w.new_tab(sys.argv[1:], os.getcwd())

        uiproxy = remote.get_proxy(factory)

        w.show_all()
        w.present()

        _logger.debug('entering mainloop')
        gtk.gdk.threads_enter()
        gtk.main()
        gtk.gdk.threads_leave()
Exemplo n.º 51
0
    def __init_ui(self):
        self.menu = gtk.Menu()

        self.database_item = gtk.MenuItem(_('Database'))
        self.database_item.show()
        self.database_item.set_sensitive(False)

        self.unlock_item = gtk.MenuItem(_('Unlock File'))
        self.unlock_item.show()
        self.unlock_item.connect(
            'activate',
            lambda w, d=None: self.file_open(self.config.get("file"))
        )

        self.lock_item = gtk.MenuItem(_('Lock File'))
        self.lock_item.connect(
            'activate',
            lambda w, d=None: self.file_close()
        )

        self.prefs_item = gtk.MenuItem(_('Preferences'))
        self.prefs_item.show()
        self.prefs_item.connect(
            'activate',
            lambda w, d=None: self.prefs()
        )

        self.about_item = gtk.MenuItem(_('About'))
        self.about_item.show()
        self.about_item.connect('activate', self.__cb_about)

        self.quit_item = gtk.MenuItem('Quit')
        self.quit_item.show()
        self.quit_item.connect('activate', gtk.main_quit)

        self.menu.append(self.database_item)
        self.menu.append(gtk.SeparatorMenuItem())
        self.menu.append(self.unlock_item)
        self.menu.append(self.lock_item)
        self.menu.append(gtk.SeparatorMenuItem())
        self.menu.append(self.prefs_item)
        self.menu.append(self.about_item)
        self.menu.append(self.quit_item)

        self.ind.set_menu(self.menu)
        #self.menu.show_all()

        gtk.about_dialog_set_url_hook(
            lambda d, l: gtk.show_uri(None, l, gtk.get_current_event_time())
        )

        gtk.about_dialog_set_email_hook(
            lambda d, l: gtk.show_uri(None, "mailto:" + l, gtk.get_current_event_time())
        )

        ## set up various ui element holders
        self.popup_entryview = None
        self.popup_entrylist = None
Exemplo n.º 52
0
    def main(self, appklass):

        default_log_level = logging.WARNING
        if 'HOTVTE_DEBUG' in os.environ:
            default_log_level = logging.DEBUG
 
        import hotwire.logutil
        mods = os.environ.get('HOTVTE_DEBUG_MODULES', '')
        if mods:
            mods = mods.split(',')
        else:
            mods = []
        hotwire.logutil.init(default_log_level, mods, '')

        _logger.debug("logging initialized")

        locale.setlocale(locale.LC_ALL, '')
        import gettext
        gettext.install('hotwire')        
    
        gobject.threads_init()
        
        app = appklass()
        remote = app.get_remote()
        remote.single_instance()

        def on_about_dialog_url(dialog, link):
            import webbrowser
            webbrowser.open(link)    
        gtk.about_dialog_set_url_hook(on_about_dialog_url)
        gtk.rc_parse_string('''
style "hotwire-tab-close" {
  xthickness = 0
  ythickness = 0
}
widget "*hotwire-tab-close" style "hotwire-tab-close"
''')    
        if os.getenv('HOTWIRE_UNINSTALLED'):
            theme = gtk.icon_theme_get_default()
            imgpath = os.path.join(os.getenv('HOTWIRE_UNINSTALLED'), 'images')
            _logger.debug("appending to icon theme: %s", imgpath)
            theme.append_search_path(imgpath)    
    
        factory = app.get_factory()
        factory.connect('shutdown', app.on_shutdown)
        w = factory.create_initial_window()
        w.new_tab(sys.argv[1:], os.getcwd())
    
        uiproxy = remote.get_proxy(factory)    
 
        w.show_all()
        w.present()
    
        _logger.debug('entering mainloop')
        gtk.gdk.threads_enter()
        gtk.main()
        gtk.gdk.threads_leave()    
Exemplo n.º 53
0
def register_webbrowser_url_hook():
    """registers pythons webbrowser module as url_hook"""
    import webbrowser
    def open_url(d, link, data):
        webbrowser.open(link)
    if sys.platform.startswith("linux"):
        webbrowser.register("xdg-open", None,
                webbrowser.GenericBrowser('xdg-open'),  update_tryorder=-1)
    gtk.about_dialog_set_url_hook(open_url, None)
Exemplo n.º 54
0
 def on_menu_about_activate(self, *extra):
     gtk.about_dialog_set_url_hook(lambda dialog, uri: misc.open_uri(uri))
     builder = gtk.Builder()
     # FIXME: domain literal duplicated from bin/meld
     builder.set_translation_domain("meld")
     builder.add_objects_from_file(paths.ui_dir("meldapp.ui"), ["about"])
     about = builder.get_object("about")
     about.props.version = app.version
     about.set_transient_for(self.widget)
     about.run()
     about.hide()
Exemplo n.º 55
0
    def __init__(self, uid, panel_id, media_button_type):
        """
        Creating the applet's core
        """
        awn.AppletSimple.__init__(self, 'media-icon' + media_button_type[1:], \
          uid, panel_id)

        self.icon_names = {}
        self.icon_names["--next"] = "media-skip-forward"
        self.icon_names["--previous"] = "media-skip-backward"
        self.icon_names["--pp"] = "media-playback-start"

        self.tooltips = {}
        self.tooltips["--next"] = _("Next")
        self.tooltips["--previous"] = _("Previous")
        self.tooltips["--pp"] = _("Play/Pause")

        self.funcs = {}
        self.funcs["--next"] = self.button_next_press
        self.funcs["--previous"] = self.button_previous_press
        self.funcs["--pp"] = self.button_pp_press

        #(Same as desktop files so there's only one string each for i18n)
        self.desc = {}
        self.desc["--next"] = _("A media-control applet (Next Track)")
        self.desc["--previous"] = _("A media-control applet (Previous Track)")
        self.desc["--pp"] = _("A media-control applet (Play/Pause)")

        #(Also same as desktop files)
        self.titles = {}
        self.titles["--next"] = _("Media Icons Next")
        self.titles["--previous"] = _("Media Icons Previous")
        self.titles["--pp"] = _("Media Icons Play/Pause")

        gtk.window_set_default_icon_name(self.icon_names[media_button_type])

        self.media_button_type = media_button_type
        self.set_icon_name(self.icon_names[media_button_type])

        self.what_app()
        self.set_tooltip_text(self.tooltips[media_button_type])

        self.popup_menu = self.create_default_menu()
        about = gtk.ImageMenuItem(gtk.STOCK_ABOUT)
        self.popup_menu.append(about)

        gtk.about_dialog_set_url_hook(self.do_url, None)

        about.connect("activate", self.show_about)
        self.connect("clicked", lambda w: self.funcs[self.media_button_type]())
        self.connect("context-menu-popup", self.menu_popup)
def show_about_dialog():
    abt = gtk.AboutDialog()
    abt.set_icon(gtk.gdk.pixbuf_new_from_file(DIALOG_ICON))

    gtk.about_dialog_set_url_hook(lambda abt, url: show_uri(url))
    gtk.about_dialog_set_email_hook(lambda d, e: show_uri("mailto:%s" % e))

    if gtk.pygtk_version >= (2, 11, 0):
        abt.set_program_name(APP_NAME)
    else:
        abt.set_name(APP_NAME)
    abt.set_version(APP_VERSION)
    _copyright = """\
Copyright (C) 2006-2012 Vodafone España S.A.
Copyright (C) 2008-2010 Warp Networks, S.L.
Copyright (C) 2008-2009 Wader contributors"""
    abt.set_copyright(_copyright)
    abt.set_authors(APP_AUTHORS)
    abt.set_documenters(APP_DOCUMENTERS)
    abt.set_artists(APP_ARTISTS)
    abt.set_website(APP_URL)
    abt.set_translator_credits(_('translator-credits'))

    abt.set_website_label(APP_URL)
    _license = """\
V Mobile Broadband

%s

This program 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 2 of the License, or
(at your option) any later version.

This program 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 this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
"""
    abt.set_license(_license % _copyright)

    def close(dialog, response):
        dialog.destroy()

    abt.connect("response", close)

    return abt
Exemplo n.º 57
0
    def show_about(self, widget):
        gtk.about_dialog_set_url_hook(self.click_website)

        about = gtk.AboutDialog()
        about.set_transient_for(self)
        about.set_name(APP)
        about.set_version(VERSION)
        about.set_website("http://ubuntu-tweak.com")
        about.set_website_label(_('Ubuntu Tweak Website'))
        about.set_logo(icon.get_from_name('ubuntu-tweak', size=128))
        about.set_comments(
            _("Ubuntu Tweak is a tool for Ubuntu that makes it easy to configure your system and desktop settings."
              ))
        about.set_authors([
            "TualatriX <*****@*****.**>",
            "",
            _("Contributors of 2007"),
            "Super Jamie <*****@*****.**>",
            "",
            _("Contributors of 2008"),
            "Lee Jarratt <*****@*****.**>",
            "",
            _("Contributors of 2009"),
            "Iven <*****@*****.**>",
            "Dig Ge <*****@*****.**>",
            "",
            _("Contributors of 2010"),
            "lfeng <*****@*****.**>",
            "Jonathan Lumb <*****@*****.**>",
            "Stepan Martiyanov <*****@*****.**>",
            "muzuiget <*****@*****.**>",
            "DaNmarner <*****@*****.**>",
            "billy3321 <*****@*****.**>",
            "",
            _("Contributors of 2011"),
            "jtlebi <*****@*****.**>",
        ])
        about.set_copyright("Copyright © 2007-2011 TualatriX")
        about.set_wrap_license(True)
        about.set_license(
            "Ubuntu Tweak 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 2 of the License, or (at your option) any later version.\n\
Ubuntu Tweak 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.\n\
You should have received a copy of the GNU General Public License along with Ubuntu Tweak; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA"
        )
        about.set_translator_credits(_("translator-credits"))
        about.set_artists([
            "m.Sharp <*****@*****.**> Logo and Banner",
            "Medical-Wei <*****@*****.**> Artwork of 0.1"
        ])
        about.run()
        about.destroy()
Exemplo n.º 58
0
 def on_About_activate(self, _):
     '''Shows the About dialog box'''
     about = gtk.AboutDialog()
     about.set_program_name("PeekAndPoker")
     about.set_version("0.6")
     about.set_copyright("(c) Semantix Information Technologies")
     about.set_comments(
         "Real-time monitoring and modification\nof variables in TASTE-generated systems"
     )
     about.set_website("http://www.semantix.gr/taste")
     gtk.about_dialog_set_url_hook(
         lambda _, url, __: os.system("luakit \"%s\"" % url), None)
     about.run()
     about.destroy()