core (XMLUI), template(XMLUI): added flags to ListWidget:
following flags have been added: - noselect: list selection is not allowed (options are the important data) - extensible: user can add elements to the list - reducible: user can remove elements from the list - inline: presentation hint: the list should be displayed horizontally
This commit is contained in:
parent
55a5b603fd
commit
3ccb4c1038
1 changed files with 33 additions and 5 deletions
|
|
@ -81,6 +81,14 @@ class OptionsWidget(Widget):
|
|||
ret.append(label)
|
||||
return ret
|
||||
|
||||
@property
|
||||
def inline(self):
|
||||
return u'inline' in self.style
|
||||
|
||||
@property
|
||||
def no_select(self):
|
||||
return u'noselect' in self.style
|
||||
|
||||
|
||||
class EmptyWidget(xmlui.EmptyWidget, Widget):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue