@@ -192,11 +192,11 @@ def main(): # PyWebIO application function
192
192
dict (label = i , value = i , color = i )
193
193
for i in ['primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' ]
194
194
], onclick = lambda b : toast (f'Clicked { b } button' ), outline = True )
195
-
196
- put_buttons ([
197
- dict (label = i , value = i , color = i )
198
- for i in ['primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' ]
199
- ], onclick = lambda b : toast (f'Clicked { b } button' ), group = True )
195
+ with put_scrollable ( border = False , height = None ):
196
+ put_buttons ([
197
+ dict (label = i , value = i , color = i )
198
+ for i in ['primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' ]
199
+ ], onclick = lambda b : toast (f'Clicked { b } button' ), group = True )
200
200
###########################################################################################
201
201
put_markdown ('# Tables' )
202
202
put_markdown ("""
@@ -258,13 +258,14 @@ def show_popup():
258
258
put_markdown ('# Loading' )
259
259
put_processbar ('processbar' , 0.3 )
260
260
put_text ()
261
- put_grid ([
262
- [
263
- put_loading (shape = shape , color = color )
264
- for color in ('primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' )
265
- ]
266
- for shape in ('border' , 'grow' )
267
- ], cell_width = '50px' , cell_height = '50px' )
261
+ with put_scrollable (border = False , height = None ):
262
+ put_grid ([
263
+ [
264
+ put_loading (shape = shape , color = color )
265
+ for color in ('primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' )
266
+ ]
267
+ for shape in ('border' , 'grow' )
268
+ ], cell_width = '50px' , cell_height = '50px' )
268
269
###########################################################################################
269
270
put_markdown ('# Tabs' )
270
271
@@ -361,6 +362,7 @@ def page():
361
362
The sketchy, minty and yeti theme are from [bootswatch](https://bootswatch.com/4/).
362
363
""" , lstrip = True )
363
364
365
+ set_env (input_panel_min_height = 100 , input_panel_init_height = 190 )
364
366
output_widgets ()
365
367
pin_widgets ()
366
368
form ()
0 commit comments