documentation indexreference manualfunction index

ui.vbox

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

This creates a layout that places widgets next to each other, from top to bottom. New widgets are added to this vbox 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:
    # Single-child widget, contains the following ui.vbox
    ui.window()

    # Multiple-child widget - all new widgets following this will be
    # added as children to it, until the next ui.close
    ui.vbox()
    ui.text("To get to the next screen, click the 'Continue' button.")
    ui.close()



documentation indexreference manualfunction index