@@ -102,8 +102,8 @@ def __init__(self, **kwargs):
102
102
],
103
103
),
104
104
"ilast" : widgets .BoundedIntText (min = 0 , max = 1e9 ),
105
- "inflow_noise" : widgets .FloatText (min = - 1e9 , max = 1e9 ),
106
- "init_noise" : widgets .FloatText (min = - 1e9 , max = 1e9 ),
105
+ "inflow_noise" : widgets .BoundedFloatText (min = - 1e9 , max = 1e9 ),
106
+ "init_noise" : widgets .BoundedFloatText (min = - 1e9 , max = 1e9 ),
107
107
"istret" : widgets .Dropdown (
108
108
options = [
109
109
("No refinement" , 0 ),
@@ -138,7 +138,7 @@ def __init__(self, **kwargs):
138
138
"numscalar" : widgets .IntSlider (min = 0 , max = 9 , continuous_update = False ),
139
139
"p_col" : widgets .Dropdown (options = self ._possible_p_col ),
140
140
"p_row" : widgets .Dropdown (options = self ._possible_p_row ),
141
- "re" : widgets .FloatText (min = 0.0 , max = 1e9 ),
141
+ "re" : widgets .BoundedFloatText (min = 0.0 , max = 1e9 ),
142
142
#
143
143
# # NumOptions
144
144
#
@@ -211,7 +211,7 @@ def __init__(self, **kwargs):
211
211
}
212
212
213
213
for name in "gravx gravy gravz" .split ():
214
- self ._widgets [name ] = widgets .FloatText (min = - 1.0 , max = 1.0 )
214
+ self ._widgets [name ] = widgets .BoundedFloatText (min = - 1.0 , max = 1.0 )
215
215
216
216
for name in "nx ny nz" .split ():
217
217
self ._widgets [name ] = widgets .Dropdown ()
@@ -247,7 +247,7 @@ def __init__(self, **kwargs):
247
247
# get description to include together with widgets
248
248
description = self .trait_metadata (name , "desc" )
249
249
if description is not None :
250
- self ._widgets [name ].description_tooltip = description
250
+ self ._widgets [name ].tooltip = description
251
251
252
252
# Creating an arrange with all widgets
253
253
dim = COORDS
0 commit comments