import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk about_dialog = Gtk.AboutDialog() about_dialog.set_program_name("My Application") about_dialog.set_version("1.0") about_dialog.set_license("GPLv3") about_dialog.run() about_dialog.destroy()
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk about_dialog = Gtk.AboutDialog() about_dialog.set_program_name("My Application") about_dialog.set_version("1.0") about_dialog.set_license("GPLv3") about_dialog.set_authors(["John DoeThis code adds more information to the AboutDialog, including author information, a website, an application icon, and wrapping of the license text. In both examples, the Gtk library is used to import the AboutDialog class from the Gtk module. Therefore, the package library is likely to be Gtk."]) about_dialog.set_website("https://example.com/my-application") about_dialog.set_logo_icon_name("my-application") about_dialog.set_wrap_license(True) about_dialog.run() about_dialog.destroy()