documentation index ◦ reference manual ◦ function index

# ui.hbox

Function: | ui.hbox | (spacing=None, style='hbox', **properties):

This creates a layout that places widgets next to each other, from left to right. New widgets are added to this hbox until ui.close is called.

spacing - The number of pixels to leave between widgets. If None, take the amount of spacing from the style.

## Example

    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

documentation index ◦ reference manual ◦ function index