~dholbach/ubuntu-app-reviews/xkcd-browser

« back to all changes in this revision

Viewing changes to xkcd_browser/XkcdBrowserWindow.py

  • Committer: brianrobles204 at gmail
  • Date: 2012-06-08 13:45:01 UTC
  • Revision ID: brianrobles204@gmail.com-20120608134501-d7mtub9mz12hy8gs
first version of the app

Show diffs side-by-side

added added

removed removed

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