HBoxLayout (hwx.gui)#

class HBoxLayout(*childrenList, **kwds)#

Bases: BoxLayout

Layout widgets horizontally.

Example

from hwx import gui

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

layout = gui.HBoxLayout (
border   = 5, # padding around all children
spacing  = 3, # padding around each child
children = (
   "Button A", gui.Button('A'),
   "Button B", gui.Button('B'),
   "Button C", gui.Button('C'),
),
)

show (layout)