1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
# This file is in the public domain
6
# This is your preferences dialog.
8
# Define your preferences in
9
# data/glib-2.0/schemas/net.launchpad.qreator.gschema.xml
10
# See http://developer.gnome.org/gio/stable/GSettings.html for more info.
12
from gi.repository import Gio # pylint: disable=E0611
15
from gettext import gettext as _
16
gettext.textdomain('qreator')
19
logger = logging.getLogger('qreator')
21
from qreator_lib.PreferencesDialog import PreferencesDialog
23
class PreferencesQreatorDialog(PreferencesDialog):
24
__gtype_name__ = "PreferencesQreatorDialog"
26
def finish_initializing(self, builder): # pylint: disable=E1002
27
"""Set up the preferences dialog"""
28
super(PreferencesQreatorDialog, self).finish_initializing(builder)
30
# Bind each preference widget to gsettings
31
settings = Gio.Settings("net.launchpad.qreator")
32
widget = self.builder.get_object('example_entry')
33
settings.bind("example", widget, "text", Gio.SettingsBindFlags.DEFAULT)
35
# Code for other initialization actions should be added here.