Skip to content

Commit

Permalink
#6702 fixed checkbox group code interaction in python (#6714)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmitusinski authored and scottdraves committed Jan 24, 2018
1 parent 2136a81 commit 1092366
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion beakerx/beakerx/beakerx_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,12 @@ class BeakerxCheckboxGroup(EasyFormComponent):
def __init__(self, **kwargs):
super(BeakerxCheckboxGroup, self).__init__(**kwargs)

def __set_value(self, new_value):
for item in self.children:
item.value = item.description in new_value

children = []
value = property(lambda self: [item.description for item in self.children if item.value])
value = property(lambda self: [item.description for item in self.children if item.value], __set_value)

def addChildren(self, children):
self.children.append(children)
Expand Down

0 comments on commit 1092366

Please sign in to comment.