documentation index ◦ reference manual ◦ function index
Function: | ui.null | (width=0, height=0, **properties): |
This widget displays nothing on the screen. Why would one want to do this? If a widget requires contents, but you don't have any contents to provide it. It can also be used to create empty space, by giving non-zero width and heigh arguments.
python: # Stats Window ui.frame(xpos=0, ypos=0, xanchor='left', yanchor='top', xfill=True, ) ui.vbox() ui.text('Statistics') ui.null(height=20) for name, range, value in stats: ui.hbox() ui.text(name, minwidth=150) ui.bar(range, value, ypos=0.5, yanchor='center') ui.close() # for the ui.hbox ui.close() # for the ui.vbox