from gi.repository import Gtk

from .. import get_data


class AboutDialog():

    def __init__(self):
        """
        Special static method that's automatically called by Python when
        constructing a new instance of this class.

        Returns a fully instantiated AboutDialog object.
        """
        self.builder = Gtk.Builder()
        self.builder.add_from_file(get_data("/ui/AboutIvolutionDialog.glade"))
        self.window = self.builder.get_object("about_ivolution_dialog")

        self.window.run()
        self.window.destroy()
