VBoxLayout (hwx.gui)#

class VBoxLayout(*childrenList, **kwds)#

Bases: BoxLayout

Layout widgets vertically.

Example

from hwx import gui

# Lay out some buttons vertically with 3 pixels of spacing between buttons
# and 5 pixels of border around the layout.

layout = gui.VBoxLayout (
border   = 5, # padding around all children
spacing  = 2, # padding around each child
children = (
   gui.Button('A'),
   gui.Button('B'),
),
)

show (layout)