1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
# This file is in the public domain
5
from gi.repository import Gtk # pylint: disable=E0611
7
from . helpers import get_builder
10
class AboutDialog(Gtk.AboutDialog):
12
__gtype_name__ = "AboutDialog"
15
"""Special static method that's automatically called by Python when
16
constructing a new instance of this class.
18
Returns a fully instantiated AboutDialog object.
20
builder = get_builder('AboutTrophyinfoDialog')
21
new_object = builder.get_object("about_trophyinfo_dialog")
22
new_object.finish_initializing(builder)
25
def finish_initializing(self, builder):
26
"""Called while initializing this instance in __new__
28
finish_initalizing should be called after parsing the ui definition
29
and creating a AboutDialog object with it in order
30
to finish initializing the start of the new AboutTrophyinfoDialog
33
Put your initialization code in here and leave __init__ undefined.
35
# Get a reference to the builder and set up the signals.
36
self.builder = builder
37
self.ui = builder.get_ui(self)