summaryrefslogtreecommitdiff
path: root/kberylsettings/beryl.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-24 10:20:10 +0000
committernatural <natural>2006-12-24 10:20:10 +0000
commitefa1df0939d879cf18e0cf9fa342aaf86d3e9ea1 (patch)
tree486d072a630c5720689ccb13f48a76485e346e6c /kberylsettings/beryl.py
parent5dbd7720a4e446d8f12c1456584e354a3facdd7c (diff)
downloadkberylsettings-efa1df0939d879cf18e0cf9fa342aaf86d3e9ea1.tar.gz
kberylsettings-efa1df0939d879cf18e0cf9fa342aaf86d3e9ea1.tar.bz2
Updates for most recent berylsettings.pyx.
Added setting widget for strings with fewer than 5 restrictions; uses radio buttons instead of a list box. Added profile menus to main.py (not yet functional). Changed color setting widgets; they now work! Other minor fixes and changes. Enabled "Defaults" and "Reset" buttons.
Diffstat (limited to 'kberylsettings/beryl.py')
-rw-r--r--kberylsettings/beryl.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/kberylsettings/beryl.py b/kberylsettings/beryl.py
index 5bb91b6..f26c32f 100644
--- a/kberylsettings/beryl.py
+++ b/kberylsettings/beryl.py
@@ -24,7 +24,7 @@ class Context(QObject):
QObject.__init__(self)
if context is None:
context = berylsettings.Context()
- context.read()
+ context.Read()
self.context = context
def getPlugins(self):
@@ -88,7 +88,7 @@ class Context(QObject):
@return None
"""
self.emit(Signals.statusMessage, ('Saving Beryl settings....', ))
- self.context.write()
+ self.context.Write()
self.reload()
def reload(self):
@@ -228,6 +228,17 @@ class Setting:
return settingLabelMap.get(value, value)
label = property(label)
+ def getValue(self):
+ try:
+ return self.setting.Value
+ except (IndexError, ):
+ return ''
+
+ def setValue(self, value):
+ self.set(value)
+ Value = property(getValue, setValue)
+
+
fixes = [
(' A ', ' a '),
(' And ', ' and '),