def on_about(self, action, param): about_dialog = Gtk.AboutDialog(transient_for=self.window, modal=True) about_dialog.set_program_name("Uberwriter") about_dialog.set_version("TODO.beta") about_dialog.set_copyright("Copyright (C) 2018, Wolf Vollprecht") about_dialog.set_license_type(Gtk.License.GPL_3_0) about_dialog.set_website("Uberwriter website http://uberwriter.wolfvollprecht.de") about_dialog.set_authors(["Wolf Vollprecht <*****@*****.**>", "Manuel Genovés <*****@*****.**>"]) logo_file = get_media_path("uberwriter.svg") logo = GdkPixbuf.Pixbuf.new_from_file(logo_file) about_dialog.set_logo(logo) about_dialog.present()
def hakkinda(): hakkinda = gtk.AboutDialog() hakkinda.set_title("Masgor ") hakkinda.set_program_name("masgor") hakkinda.set_version(versiyon) hakkinda.set_copyright(kim) hakkinda.set_icon_from_file("./masgor.svg") hakkinda.set_license(lisans) hakkinda.set_website(site) hakkinda.set_authors(mail) logo = gdkpixbuf.Pixbuf.new_from_file_at_size("./masgor.svg", 148, 148) hakkinda.set_logo(logo) hakkinda.show_all() if hakkinda.run() == gtk.ResponseType.CANCEL: hakkinda.destroy()
def run_about_dialog(mainwin, app): """Runs MyPaint's about window as a transient modal dialog.""" d = Gtk.AboutDialog() d.set_transient_for(mainwin) d.set_program_name(lib.meta.MYPAINT_PROGRAM_NAME) d.set_version(app.version) d.set_copyright(COPYRIGHT_STRING) d.set_website(WEBSITE_URI) d.set_logo(app.pixmaps.mypaint_logo) d.set_license(LICENSE_SUMMARY) d.set_wrap_license(True) d.set_authors(_AUTHOR_CREDITS) d.set_artists(_ARTIST_CREDITS) d.set_translator_credits(_TRANSLATOR_CREDITS) d.run() d.destroy()
def about(self, window, logo, ver): dialog = Gtk.AboutDialog(self, use_header_bar=True) dialog.set_program_name(browser_name) dialog.set_version("{} (WebKit {})".format(version, ver)) dialog.set_logo(logo) dialog.set_authors([authors]) dialog.set_translator_credits(translators) dialog.set_website(website) dialog.set_website_label(website) dialog.set_comments(comments) dialog.set_license_type(Gtk.License.GPL_3_0) dialog.set_transient_for(window) self.fix_dialog(dialog, None) dialog.run() dialog.destroy()
def about_callback(self, action, parameter): dialog = Gtk.AboutDialog() dialog.set_transient_for(self) dialog.set_modal(True) dialog.set_program_name(self.title) dialog.set_copyright("Copyright 2020, 2021 Esrille Inc.") dialog.set_authors(["Esrille Inc."]) dialog.set_documenters(["Esrille Inc."]) dialog.set_website("http://www.esrille.com/") dialog.set_website_label("Esrille Inc.") dialog.set_logo_icon_name(package.get_name()) dialog.set_version(package.get_version()) # To close the dialog when "close" is clicked, e.g. on Raspberry Pi OS, # the "response" signal needs to be connected about_response_callback dialog.connect("response", self.about_response_callback) dialog.show()
def on_about_clicked(self, action): aboutdialog = Gtk.AboutDialog(modal=True, transient_for=self) aboutdialog.set_program_name(APP_NAME) aboutdialog.set_version(APP_VERSION) aboutdialog.set_license_type(Gtk.License.GPL_3_0) aboutdialog.set_copyright("Copyright \xa9 2020 Michael Moroni") aboutdialog.set_comments("Keep track of your game points") aboutdialog.set_authors(["Michael Moroni"]) aboutdialog.set_documenters(["Michael Moroni"]) aboutdialog.set_website("http://github.com/airon90/scorekeeper") aboutdialog.set_website_label("GitHub repository") aboutdialog.set_translator_credits("Michael Moroni") # aboutdialog.set_logo( # GdkPixbuf.Pixbuf.new_from_file_at_size(ABS_PATH + "logo.png", 64, 64)) aboutdialog.connect('response', lambda dialog, data: dialog.destroy()) aboutdialog.show_all()
def about_clicked(self, widget): print('about_clicked') popup = Gtk.AboutDialog(self, logo=None, authors=[ 'Eli Innis', 'in-game: Sketch2', 'twitter: @Doyousketch2', 'email: Doyousketch2 @ yahoo.com' ], copyright='Copyright 2018', license_type=Gtk.License.GPL_3_0, version=ver) popup.set_transient_for(self) popup.set_modal(True) popup.run() popup.destroy()
def show_about_dialog(self): """Display the about dialog.""" about_dlg = Gtk.AboutDialog() #Set the content of the dialog about_dlg.set_program_name(__app_disp_name__) about_dlg.set_version(__version__) about_dlg.set_comments(__doc__) about_dlg.set_website(__website__) about_dlg.set_copyright("Copyright (c) 2011 %s" % __author__) logo = Gtk.Image.new_from_file( "/usr/share/nautilus-terminal/logo_120x120.png") about_dlg.set_logo(logo.get_pixbuf()) #Signal about_dlg.connect("response", lambda w, r: w.destroy()) #Display de dialog about_dlg.show()
def showAboutDialog(self, action, userdata = None): about = Gtk.AboutDialog() about.set_name("mintMenu") about.set_version("__DEB_VERSION__") try: gpl = open('/usr/share/common-licenses/GPL','r').read() about.set_license(gpl) except Exception as e: print(e) about.set_comments(_("Advanced MATE Menu")) # about.set_authors(["Clement Lefebvre <*****@*****.**>", "Lars-Peter Clausen <*****@*****.**>"]) about.set_translator_credits(("translator-credits")) # about.set_copyright(_("Based on USP from S.Chanderbally")) about.set_logo(GdkPixbuf.Pixbuf.new_from_file("/usr/lib/linuxmint/mintMenu/icon.svg")) about.connect("response", lambda dialog, r: dialog.destroy()) about.show()
def about_cb(widget, data): global window authors = ['John (J5) Palmieri', 'Tomeu Vizoso', 'and many more...'] documentors = ['David Malcolm', 'Zack Goldberg', 'and many more...'] license = """ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the Gnome Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """ filename = os.path.join('data', 'gtk-logo-rgb.gif') try: pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename) except glib.GError: filename = os.path.join('demos', filename) pixbuf = GdkPixbuf.Pixbuf.new_from_file(filename) transparent = pixbuf.add_alpha(True, 0xff, 0xff, 0xff) # FIXME: override Gtk.show_about_dialog # make about dailog constructor take a parent argument about = Gtk.AboutDialog(program_name='GTK+ Code Demos', version='0.1', copyright='(C) 2010 The PyGI Team', license=license, website='http://live.gnome.org/PyGI', comments='Program to demonstrate PyGI functions.', authors=authors, documenters=documentors, logo=transparent, title='About GTK+ Code Demos') about.set_transient_for(window) about.connect('response', widget_destroy) about.show()
def on_about_activate(self, widget, optional): """Create and populate the about dialog.""" about_dialog = Gtk.AboutDialog(parent=self.win) about_dialog.set_name(comun.APPNAME) about_dialog.set_version(comun.VERSION) about_dialog.set_copyright( 'Copyrignt (c) 2010-2016\nLorenzo Carbonell Cerezo') about_dialog.set_comments(_('A client for Google Photos')) about_dialog.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 (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, see <http://www.gnu.org/licenses/>. ''') about_dialog.set_website('https://www.atareao.es') about_dialog.set_website_label('https://www.atareao.es') about_dialog.set_authors([ 'Lorenzo Carbonell <*****@*****.**>']) about_dialog.set_documenters([ 'Lorenzo Carbonell <*****@*****.**>']) about_dialog.set_translator_credits(''' 'Dario Villar Veres <*****@*****.**>\n'+ 'Bernardo Miguel Savone <*****@*****.**>\n'+ 'Enbata <*****@*****.**>\n'+ 'Mario Blättermann <*****@*****.**>\n'+ 'Lorenzo Carbonell <*****@*****.**>\n'+ 'zeugma <https://launchpad.net/~sunder67>\n'+ 'Alin Andrei <https://launchpad.net/~nilarimogard>\n'+ 'Fitoschido <*****@*****.**>\n'+ 'Daniele Lucarelli <https://launchpad.net/~ldanivvero>\n'+ 'Alejandro Martín Covarrubias <*****@*****.**>\n'+ 'Rustam Vafin\n'+ 'elmodos\n'+ '[email protected] <*****@*****.**>\n'+ 'fgp <https://launchpad.net/~komakino>\n''') about_dialog.set_icon(GdkPixbuf.Pixbuf.new_from_file(comun.ICON)) about_dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file(comun.ICON)) about_dialog.set_program_name(comun.APPNAME) about_dialog.run() about_dialog.destroy()
def about(self, widget, data=None): about_dialog = Gtk.AboutDialog() about_dialog.set_destroy_with_parent(True) about_dialog. set_transient_for(self) about_dialog.set_position(Gtk.WindowPosition.CENTER_ON_PARENT) about_dialog.set_logo(GdkPixbuf.Pixbuf.new_from_file("logo.png")) about_dialog.set_program_name("Sistema de Teleatendimento Holográfico da UFF (STH-UFF)") about_dialog.set_version('01/03/2019 (Alfa)') about_dialog.set_comments('Criando por André Luis de Oliveria Fonseca\n Email: [email protected]') about_dialog.set_website('http://www.midiacom.uff.br/sthuff') about_dialog.set_website_label('www.midiacom.uff.br/sthuff') about_dialog.set_copyright("2016-2019, UFF - Universidade Federal Fluminense") about_dialog.set_license_type(Gtk.License.BSD) response_about = about_dialog.run() if response_about == -6 or response_about == -4: about_dialog.hide() about_dialog.destroy()
def about(parent): dialog = Gtk.AboutDialog( program_name=app_info.TITLE, logo_icon_name=app_info.ICON, version=app_info.VERSION, comments=_('Install fonts temporarily'), website=app_info.WEBSITE, website_label=app_info.WEBSITE, copyright=app_info.COPYRIGHT, license=app_info.LICENSE, transient_for=parent, destroy_with_parent=True ) dialog.run() dialog.destroy()
def about_app(self, widget): info = Gtk.AboutDialog() info.set_transient_for(self) info.set_program_name('Boye Alarm') info.set_version('1.0') info.set_comments('An alarm clock app for PC') info.set_copyright('Copyright © 2019 Emmanuel Adeboye') info.set_authors(['Adeboye Emmanuel']) info.add_credit_section ('Appreciation:',\ ['Adeboye Elijah', 'Adeboye Cecilia', 'Kayode Okanlawon', 'Oniyide Hanameel']) # start the dailog info.run() info.destroy()
def on_about_clicked(self, btn): dialog = Gtk.AboutDialog() dialog.set_transient_for(self) dialog.set_title('Bups') dialog.set_name('Bups') dialog.set_program_name('Bups') dialog.set_version(__version__) dialog.set_authors(['Emersion']) dialog.set_comments( _('Simple GUI for Bup, a very efficient backup system.')) dialog.set_website('https://github.com/emersion/bups') dialog.set_logo_icon_name('drive-harddisk') dialog.set_license( _('Distributed under the MIT license.') + '\nhttp://opensource.org/licenses/MIT') dialog.run() dialog.destroy()
def show_about_dialog(self, action, param): about = Gtk.AboutDialog() about.set_transient_for(self.get_active_window()) about.set_modal(True) about.set_version(self.version) about.set_program_name("Breathing") about.set_logo_icon_name("io.github.seadve.Breathing") about.set_authors(["Dave Patrick"]) about.set_comments(_("Relax and meditate")) about.set_wrap_license(True) about.set_license_type(Gtk.License.GPL_3_0) about.set_copyright(_("Copyright 2021 Dave Patrick")) # Translators: Replace "translator-credits" with your names, one name per line about.set_translator_credits(_("translator-credits")) about.set_website_label(_("GitHub")) about.set_website("https://github.com/SeaDve/Breathing") about.present()
def show_about_dialog(self, action, param): about = Gtk.AboutDialog() about.set_transient_for(self.window) about.set_modal(True) about.set_version(self.version) about.set_program_name("Kooha") about.set_logo_icon_name("io.github.seadve.Kooha") about.set_authors(["Dave Patrick", "mathiascode"]) about.set_comments(_("Elegantly record your screen")) about.set_wrap_license(True) about.set_license_type(Gtk.License.GPL_3_0) about.set_copyright(_("Copyright 2021 Dave Patrick")) # Translators: Replace "translator-credits" with your names, one name per line about.set_translator_credits(_("translator-credits")) about.set_website_label(_("GitHub")) about.set_website("https://github.com/SeaDve/Kooha") about.show()
def acerca_de(self, widget): #acerca de dialogo vbox = Gtk.VBox() acerca_de_dialogo = Gtk.AboutDialog() acerca_de_dialogo.set_program_name('El juego de la vida') acerca_de_dialogo.set_version('PM 1') acerca_de_dialogo.set_authors('MCM') acerca_de_dialogo.set_copyright( 'Desarrollo de interfaz gráfica en Gtk 3.0') acerca_de_dialogo.set_comments('Uso de Gtk 3.0, Numpy, MatplotLib') acerca_de_dialogo.set_website( 'https://github.com/MariajoseChinchilla/TestGit/blob/master/Main.py' ) vbox.pack_start(acerca_de_dialogo, False, False, 0) self.add(vbox) acerca_de_dialogo.run() acerca_de_dialogo.destroy()
def on_frontend_clicked(self, parent): about_frontend = Gtk.AboutDialog() about_frontend.set_authors(["Mastergatto"]) about_frontend.set_license_type(Gtk.License(2)) #GPL2 about_frontend.set_program_name("Good Old M64+") about_frontend.set_version("0.1") about_frontend.set_copyright("©2019 Mastergatto") about_frontend.set_artists([ "Freepik (The flags are designed by Freepik from Flaticon (www.flaticon.com))", "Google (Noto Emoji Travel & Places Icons set)" ]) about_frontend.set_website("https://github.com/Mastergatto/gom64p") about_frontend.set_website_label("Github repository") about_frontend.set_transient_for(parent) response = about_frontend.run() about_frontend.destroy()
def on_about(self, *args): dialog = Gtk.AboutDialog(transient_for=self) dialog.set_logo_icon_name('com.github.huluti.Curtail') dialog.set_program_name('Curtail') dialog.set_version('1.3.1') dialog.set_website('https://github.com/Huluti/Curtail') dialog.set_authors([ 'Hugo Posnic', 'Steven Teskey', 'Andrey Kozlovskiy', 'Balló György', 'olokelo', 'Archisman Panigrahi' ]) dialog.set_translator_credits(_("translator-credits")) dialog.set_comments(_("Compress your images")) text = _("Distributed under the GNU GPL(v3) license.\n") text += 'https://github.com/Huluti/Curtail/blob/master/COPYING\n' dialog.set_license(text) dialog.run() dialog.destroy()
def about(self, a, b): dialog = Gtk.AboutDialog(transient_for=self) dialog.set_logo(self.logo) dialog.set_program_name(self.program_title) dialog.set_version('0.8') dialog.set_website('https://imeditor.github.io') dialog.set_authors(['Nathan Seva', 'Hugo Posnic']) gtk_version = '{}.{}.{}'.format(Gtk.get_major_version(), Gtk.get_minor_version(), Gtk.get_micro_version()) dialog.set_comments('{}\n\n' \ 'Gtk: {}\nPillow: {}'.format(self.program_description, gtk_version, pil_version)) text = 'Distributed under the GNU GPL(v3) license.\n' text += 'https://github.com/ImEditor/ImEditor/blob/master/LICENSE\n' dialog.set_license(text) dialog.run() dialog.destroy()
def show_about_dialog(self): """Display the about dialog.""" about_dlg = Gtk.AboutDialog() #Set the content of the dialog about_dlg.set_program_name(__app_disp_name__) about_dlg.set_version(__version__) about_dlg.set_comments(__doc__) about_dlg.set_website(__website__) about_dlg.set_copyright("Copyright (c) 2005-13 %s" % __author__) #: FIXME : on doit aller la chercher + intelligemment. logo = Gtk.Image.new_from_file( "/usr/share/icons/gnome/32x32/apps/terminal.png") # 32x32 about_dlg.set_logo(logo.get_pixbuf()) #Signal about_dlg.connect("response", lambda w, r: w.destroy()) #Display the dialog about_dlg.show()
def show_about(self): """Bring about window to focus or create if it doesn't exist.""" if self._about_win is not None: self._about_win.present() else: self._about_win = Gtk.AboutDialog() self._about_win.set_program_name(PROGRAM_NAME) self._about_win.set_version(VERSION) self._about_win.set_copyright(COPYRIGHT) self._about_win.set_license_type(LICENSE) self._about_win.set_comments(COMMENTS) self._about_win.set_website(WEBSITE) self._about_win.set_logo_icon_name("audio-volume-high") self._about_win.run() self._about_win.destroy() del self._about_win self._about_win = None
def about_dialog(self, event): """About dialog""" about_dialog = Gtk.AboutDialog(self) about_dialog.set_program_name(self.app_name) about_dialog.set_version("1.8") about_dialog.set_copyright("Hugo Posnic") about_dialog.set_comments(_("Enjoy colors and feel happy!")) about_dialog.set_website("https://github.com/Huluti/{}".format( self.app_name)) about_dialog.set_website_label("GitHub") about_dialog.set_authors(["Hugo Posnic"]) about_dialog.set_logo_icon_name('com.github.huluti.Coulr') about_dialog.set_license(self.app_name + " " + _("is under MIT Licence.")) about_dialog.set_transient_for(self) about_dialog.run() about_dialog.destroy()
def on_about(self, *args): """Action callback, showing the "about" dialog.""" about_dialog = Gtk.AboutDialog( transient_for=self.props.active_window, copyright='© 2019 Romain F. T.', authors=['Romain F. T.'], # To tranlators: "translate" this by your name, it will be displayed in the "about" dialog translator_credits=_("translator-credits"), artists=['Tobias Bernard', 'Romain F. T.'], comments=_("A drawing application for the GNOME desktop."), license_type=Gtk.License.GPL_3_0, logo_icon_name=APP_ID, version=str(self.version), website='https://maoschanz.github.io/drawing/', website_label=_("Official webpage")) about_dialog.run() about_dialog.destroy()
def showAboutDialog( self, action, userdata = None ): about = Gtk.AboutDialog() about.set_name("mintMenu") import commands version = commands.getoutput("/usr/lib/linuxmint/common/version.py mintmenu") about.set_version(version) try: h = open('/usr/share/common-licenses/GPL','r') s = h.readlines() gpl = "" for line in s: gpl += line h.close() about.set_license(gpl) except Exception, detail: print detail
def on_about_clicked(self, widget): about = Gtk.AboutDialog() about.set_name('Hakkında') about.set_resizable(True) about.set_icon_from_file(self.icon_file_path) about.set_program_name("Liderahenk Bildirim") about.set_version("1.0") # about.set_authors("") # about.set_copyright("pardus") about.set_comments( "Liderahenk MYS tarafından gönderilen bildirimleri\n" "açmak için kullanılır. Bildirimler gönderilme tarihine göre\n" "seçilerek görüntülenir.\n\n" "Toplam Bildirim Sayısı: {0}".format(self.notify_count)) about.set_website("http://liderahenk.org/") about.run() about.destroy()
def _on_about_clicked(self, toolbutton, data=None): """ Show an 'About' dialog. """ selection = self._treeview.get_selection() model, iter = selection.get_selected() if iter: info = model[iter][4] dialog = Gtk.AboutDialog() dialog.set_transient_for(self.parent) dialog.set_modal(True) dialog.set_authors((info.author,)) dialog.set_website(info.website) dialog.set_website_label(info.website) dialog.set_program_name(info.name) dialog.set_version(str(info.version)) dialog.set_comments(info.description) dialog.run() dialog.destroy()
def run_about_dialog(mainwin, app): """Runs MyPaint's about window as a transient modal dialog.""" d = Gtk.AboutDialog() d.set_transient_for(mainwin) d.set_program_name(lib.meta.MYPAINT_PROGRAM_NAME) p = lib.meta.MYPAINT_PROGRAM_NAME v_raw = app.version or lib.meta.MYPAINT_VERSION v = "{mypaint_version}\n\n<small>({libs_versions})</small>".format( mypaint_version=escape(v_raw), libs_versions=escape(get_libs_version_string()), ) if os.name == "nt": # The architecture matters more on windows, to the extent that # we release two separate builds with differing names. bits_str, linkage = platform.architecture() bits_str = { "32bit": "w32", "64bit": "w64", }.get(bits_str, bits_str) p = "{progname} {w_bits}".format( progname=lib.meta.MYPAINT_PROGRAM_NAME, w_bits=bits_str, ) # Some strings have markup characters escaped in GTK because # of standard markup being applied to that info section, noted below. # escapes input d.set_program_name(p) # does NOT escape input d.set_version(v) # escapes input d.set_copyright(COPYRIGHT_STRING) # only url (set_website_label escapes input) d.set_website(WEBSITE_URI) d.set_logo(app.pixmaps.mypaint_logo) # does NOT escape input d.set_license(LICENSE_SUMMARY) d.set_wrap_license(True) # Credits sections use some custom undocumented simple parsing # to produce markup for email links, website links etc. # NOTE: Said parsing does not care if input is escaped or not... d.set_authors(_AUTHOR_CREDITS) d.set_artists(_ARTIST_CREDITS) d.set_translator_credits(_TRANSLATOR_CREDITS) d.run() d.destroy()
def show_about_dialog(self, parent=None): """ Show an 'About' dialog. """ dialog = Gtk.AboutDialog() if parent: dialog.set_transient_for(parent) dialog.set_modal(True) dialog.set_authors(("Micah Carrick <*****@*****.**>",)) dialog.set_copyright("Copyright © 2012, Micah Carrick") dialog.set_icon_name(self.package) dialog.set_logo_icon_name(self.package) dialog.set_website("http://mykiss-editor.org") dialog.set_website_label("http://mykiss-editor.org") dialog.set_program_name(self.package_name) dialog.set_version(self.version) dialog.set_comments(_("Mykiss is a programmer's text editor and IDE\n(Integrated Development Environment)")) dialog.run() dialog.destroy()