#!/usr/bin/env python3

#--------------------#
# AboutDialog dialog #
#--------------------#
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk,GdkPixbuf

class AboutDialog(Gtk.AboutDialog):
    def __init__(self):
        logo = GdkPixbuf.Pixbuf.new_from_file_at_size("/usr/share/speedtest/icons/speedtest.svg", 48, 48)

        Gtk.AboutDialog.__init__(self)
        self.set_title("SpeedTest")
        self.set_name("SpeedTest")
        self.set_version("Version 0.4.8")
        self.set_comments("Simple gui to test bandwidth speed")
        self.set_website("https://www.pclosdebian.com/")
        self.set_authors(["Ken Dotson Copyright © 2025\n\nThis program is free software; you can redistribute it and/or\nmodify it under the terms of the GNU General Public License\nas published by the Free Software Foundation; either version\n3 of the License, or (at your option) any later version."])
        self.set_logo(logo)
        self.connect("response", self.on_response)

    def on_response(self, dialog, response):
        self.destroy()

aboutdialog = AboutDialog()
aboutdialog.run()






