~didrocks/quickly/dont-licence-private-lib

« back to all changes in this revision

Viewing changes to data/templates/ubuntu-application/project_root/python_lib/Window.py

  • Committer: Michael Terry
  • Date: 2012-08-21 14:44:32 UTC
  • mfrom: (673.2.13 overwrite)
  • Revision ID: michael.terry@canonical.com-20120821144432-5m1x9c0yofm7d9pv
merge overwrite branch to make it easier to update quickly-owned code

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# This file is in the public domain
4
4
### END LICENSE
5
5
 
 
6
### DO NOT EDIT THIS FILE ###
 
7
 
6
8
from gi.repository import Gio, Gtk # pylint: disable=E0611
7
9
import logging
8
10
logger = logging.getLogger('python_name_lib')
52
54
        self.settings = Gio.Settings("net.launchpad.project_name")
53
55
        self.settings.connect('changed', self.on_preferences_changed)
54
56
 
55
 
        # Optional Launchpad integration
56
 
        # This shouldn't crash if not found as it is simply used for bug reporting.
57
 
        # See https://wiki.ubuntu.com/UbuntuDevelopment/Internationalisation/Coding
58
 
        # for more information about Launchpad integration.
59
 
        try:
60
 
            from gi.repository import LaunchpadIntegration # pylint: disable=E0611
61
 
            LaunchpadIntegration.add_items(self.ui.helpMenu, 1, True, True)
62
 
            LaunchpadIntegration.set_sourcepackagename('project_name')
63
 
        except ImportError:
64
 
            pass
65
 
 
66
57
        # Optional application indicator support
67
58
        # Run 'quickly add indicator' to get started.
68
59
        # More information: