Exemple #1
0
 def __init__(self,
              min_exp=0,
              max_exp=1,
              base=10,
              num_steps=100,
              step_size=None,
              **kwargs):
     assert step_size or num_steps
     if step_size is not None: num_steps = (max_exp - min_exp) / step_size
     converter = converters.log_slider_converter(min_exp=min_exp,
                                                 max_exp=max_exp,
                                                 num_steps=num_steps,
                                                 base=base)
     _slider_base.__init__(self,
                           converter=converter,
                           num_steps=num_steps,
                           **kwargs)
Exemple #2
0
	def __init__(self, min_exp=0, max_exp=1, base=10, num_steps=100, step_size=None, **kwargs):
		assert step_size or num_steps
		if step_size is not None: num_steps = (max_exp - min_exp)/step_size
		converter = converters.log_slider_converter(min_exp=min_exp, max_exp=max_exp, num_steps=num_steps, base=base)
		_slider_base.__init__(self, converter=converter, num_steps=num_steps, **kwargs)