Skip to content
This repository has been archived by the owner on Nov 29, 2019. It is now read-only.

Commit

Permalink
Fix for integer ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 12, 2017
1 parent 406c3aa commit 27084fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parambokeh/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def DateWidget(*args, **kw):

def RangeWidget(*args, **kw):
kw['range'] = kw.pop('value')
if all(isinstance(v, int) for v in kw['range']):
kw['step'] = 1
return RangeSlider(*args, **kw)

def PlotWidget(*args, **kw):
Expand Down

0 comments on commit 27084fa

Please sign in to comment.