summaryrefslogtreecommitdiff
path: root/kberylsettings/widget.py
diff options
context:
space:
mode:
authorracarr <racarr>2006-12-15 19:45:12 +0000
committerracarr <racarr>2006-12-15 19:45:12 +0000
commite9c4bd69ccee487f8d32e8d2e2072dc46fb36f09 (patch)
tree22e638e15060218ba4d180d007cf3e3d60a52df1 /kberylsettings/widget.py
downloadkberylsettings-e9c4bd69ccee487f8d32e8d2e2072dc46fb36f09.tar.gz
kberylsettings-e9c4bd69ccee487f8d32e8d2e2072dc46fb36f09.tar.bz2
racarr: Add Troy Mellhase's kberylsettings manager to branches
Diffstat (limited to 'kberylsettings/widget.py')
-rw-r--r--kberylsettings/widget.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/kberylsettings/widget.py b/kberylsettings/widget.py
new file mode 100644
index 0000000..5b2dc29
--- /dev/null
+++ b/kberylsettings/widget.py
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+from qt import Qt, QFrame, QSizePolicy, QSplitter, QVBoxLayout
+from kdeui import KPopupMenu, KPushButton
+
+
+class Frame(QFrame):
+ def __init__(self, parent, margin=0, spacing=-1):
+ QFrame.__init__(self, parent)
+ layout = QVBoxLayout(self, margin, spacing)
+ layout.setAlignment(Qt.AlignTop | Qt.AlignLeft)
+ layout.setAutoAdd(True)
+
+
+class Popup(KPopupMenu):
+ def __init__(self, parent):
+ KPopupMenu.__init__(self, parent)
+ self.setCheckable(True)
+
+
+class Splitter(QSplitter):
+ def __init__(self, parent, style):
+ QSplitter.__init__(self, style, parent)
+ self.setOpaqueResize(True)
+
+
+class SmallPushButton(KPushButton):
+ def __init__(self, icon, text, parent):
+ KPushButton.__init__(self, icon, text, parent)
+ self.setSizePolicy(QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed))
+
+
+