Hi there,
I have the following sample:
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk
win = Gtk.Window()
win.connect("destroy", Gtk.main_quit)
win.show_all()
def about_info ():
dialog = Gtk.AboutDialog()
dialog.set_program_name("Program Name")
dialog.set_version("0.3")
dialog.set_comments("Comments here")
dialog.set_website("https://url.xyz")
dialog.set_website_label("https://url.xyz")
dialog.set_authors(["The Author"])
dialog.set_copyright("© 2222 The Author")
dialog.set_license_type(Gtk.License.GPL_3_0)
dialog.set_wrap_license = True
dialog.connect('response', lambda dialog, data: dialog.destroy())
dialog.show_all()
about_info()
Gtk.main()
Which is the right way that I get the license text when its button is pressed in Gtk.AboutDialog()
?
Many thanks for your help.