summaryrefslogtreecommitdiff
path: root/kberylsettings/widget.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/widget.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/widget.py')
-rw-r--r--kberylsettings/widget.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/kberylsettings/widget.py b/kberylsettings/widget.py
index f86a73a..2f9e6ca 100644
--- a/kberylsettings/widget.py
+++ b/kberylsettings/widget.py
@@ -3,8 +3,8 @@
""" kberylsettings.widget -> various common widgets.
"""
-from qt import Qt, QFrame, QListViewItem, QListViewItemIterator, QSizePolicy, \
- QSplitter, QVBoxLayout, QWidgetStack
+from qt import Qt, QFrame, QGroupBox, QListViewItem, QListViewItemIterator, \
+ QSizePolicy, QSplitter, QVBoxLayout, QWidgetStack
from kdeui import KListView, KPopupMenu, KPushButton
@@ -97,3 +97,15 @@ class WidgetStack(QWidgetStack):
QWidgetStack.__init__(self, parent)
layout = QVBoxLayout(self)
layout.setAutoAdd(True)
+
+
+class GroupBox(QGroupBox):
+ def __init__(self, strips, orient, text, parent, margin=0, spacing=0):
+ QGroupBox.__init__(self, strips, orient, text, parent)
+ self.setFlat(True)
+ self.setInsideMargin(margin)
+ self.setInsideSpacing(spacing)
+
+ def addSpaces(self, count, size=0):
+ for i in range(count):
+ self.addSpace(size)