Skip to content

Commit

Permalink
Fix Jupyter checkgrid param bug
Browse files Browse the repository at this point in the history
  • Loading branch information
charwick committed Oct 29, 2020
1 parent 77195bf commit 1b0e25c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion helipad/param.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,11 @@ def getSpecific(self, item=None):
if item is not None: return vals[item]
else: return [k for k,v in vals.items() if (v.get() if useElement else v)]

def set(self, item, val=True, updateGUI=True): super().set(val, item, updateGUI)
def set(self, item, val=True, updateGUI=True):
if getattr(self, 'setter', False):
val = self.setter(val, item)
if val is not None: self.setSpecific(item, val)
else: self.setSpecific(item, val, updateGUI)

#Takes a list of strings, or a key-bool pair
def setSpecific(self, item, val=True, updateGUI=True):
Expand Down
2 changes: 1 addition & 1 deletion sample-notebooks/axelrod.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion sample-notebooks/cpanel-test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.9.0"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1b0e25c

Please sign in to comment.