@@ -192,11 +192,11 @@ def main(): # PyWebIO application function
192192 dict (label = i , value = i , color = i )
193193 for i in ['primary' , 'secondary' , 'success' , 'danger' , 'warning' , 'info' , 'light' , 'dark' ]
194194 ], 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 )
200200 ###########################################################################################
201201 put_markdown ('# Tables' )
202202 put_markdown ("""
@@ -258,13 +258,14 @@ def show_popup():
258258 put_markdown ('# Loading' )
259259 put_processbar ('processbar' , 0.3 )
260260 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' )
268269 ###########################################################################################
269270 put_markdown ('# Tabs' )
270271
@@ -361,6 +362,7 @@ def page():
361362 The sketchy, minty and yeti theme are from [bootswatch](https://bootswatch.com/4/).
362363 """ , lstrip = True )
363364
365+ set_env (input_panel_min_height = 100 , input_panel_init_height = 190 )
364366 output_widgets ()
365367 pin_widgets ()
366368 form ()
0 commit comments