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