diff browser_side/xmlui.py @ 428:0c4547587637

browser_side (xmlui): implement the divider styles
author souliane <souliane@mailoo.org>
date Tue, 01 Apr 2014 12:14:31 +0200
parents f539f6f8ee9c
children 9283f9e5e5dd
line wrap: on
line diff
--- a/browser_side/xmlui.py	Mon Mar 31 12:26:20 2014 +0200
+++ b/browser_side/xmlui.py	Tue Apr 01 12:14:31 2014 +0200
@@ -63,7 +63,18 @@
 class DividerWidget(xmlui.DividerWidget, HTML):
 
     def __init__(self, parent, style='line'):
-        HTML.__init__(self, "<hr/>") # gof: TODO:
+        """Add a divider
+
+        @param parent
+        @param style (string): one of:
+                               - line: a simple line
+                               - dot: a line of dots
+                               - dash: a line of dashes
+                               - plain: a full thick line
+                               - blank: a blank line/space
+        """
+        HTML.__init__(self, "<hr/>")
+        self.addStyleName(style)
 
 
 class StringWidget(xmlui.StringWidget, TextBox):