VFrame (hwx.gui)#

class VFrame(*childrenList, **kwds)#

Bases: Frame

A Frame with a VBoxLayout.

VFrame groups controls vertically so they can be sized and/or decorated as one.

Example

from hwx import gui

# Create widgets and arrange them in a vertical frame container.
# "<->" symbol inside a VFrame children denotes a blank space stretch in a
# row.
vframe = gui.VFrame(
(gui.Label("A Label"), gui.CheckBox("A CheckBox")),
(gui.Label("B Label"), gui.CheckBox("B CheckBox")),
("<->", gui.PushButton("A PushButton")))

show(vframe)