1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
# This file is in the public domain
7
from gettext import gettext as _
8
gettext.textdomain('xkcd-browser')
10
from gi.repository import Gtk # pylint: disable=E0611
12
logger = logging.getLogger('xkcd_browser')
14
from xkcd_browser_lib import Window
15
from xkcd_browser.AboutXkcdBrowserDialog import AboutXkcdBrowserDialog
16
from xkcd_browser.PreferencesXkcdBrowserDialog import PreferencesXkcdBrowserDialog
18
# See xkcd_browser_lib.Window.py for more details about how this class works
19
class XkcdBrowserWindow(Window):
20
__gtype_name__ = "XkcdBrowserWindow"
22
def finish_initializing(self, builder): # pylint: disable=E1002
23
"""Set up the main window"""
24
super(XkcdBrowserWindow, self).finish_initializing(builder)
26
self.AboutDialog = AboutXkcdBrowserDialog
27
self.PreferencesDialog = PreferencesXkcdBrowserDialog
29
# Code for other initialization actions should be added here.