Skip to content

Commit 6af8e54

Browse files
authored
Merge pull request #66 from martinRenou/underwater_float
UnderWater: Allow float input
2 parents 396caa3 + a27657e commit 6af8e54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipygany/ipygany.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class UnderWater(Effect):
491491

492492
_model_name = Unicode('UnderWaterModel').tag(sync=True)
493493

494-
input = Union((Tuple(trait=Unicode, minlen=2, maxlen=2), Unicode())).tag(sync=True)
494+
input = Union((Tuple(trait=Unicode, minlen=2, maxlen=2), Unicode(), CFloat(0.))).tag(sync=True)
495495

496496
default_color = Color('#F2FFD2').tag(sync=True)
497497
texture = Instance(Image, allow_none=True, default_value=None).tag(sync=True, **widget_serialization)

0 commit comments

Comments
 (0)