comparison 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
comparison
equal deleted inserted replaced
427:b5b440e6ea16 428:0c4547587637
61 61
62 62
63 class DividerWidget(xmlui.DividerWidget, HTML): 63 class DividerWidget(xmlui.DividerWidget, HTML):
64 64
65 def __init__(self, parent, style='line'): 65 def __init__(self, parent, style='line'):
66 HTML.__init__(self, "<hr/>") # gof: TODO: 66 """Add a divider
67
68 @param parent
69 @param style (string): one of:
70 - line: a simple line
71 - dot: a line of dots
72 - dash: a line of dashes
73 - plain: a full thick line
74 - blank: a blank line/space
75 """
76 HTML.__init__(self, "<hr/>")
77 self.addStyleName(style)
67 78
68 79
69 class StringWidget(xmlui.StringWidget, TextBox): 80 class StringWidget(xmlui.StringWidget, TextBox):
70 81
71 def __init__(self, parent, value): 82 def __init__(self, parent, value):