GridLayout (hwx.gui)#
- class GridLayout(*childrenList, **kwds)#
Bases:
Layout
Layout widgets in rows and columns.
# Name
Description
addChildren
(self, children, nrows=None, ncols=None)Add the children in the grid layout.
Example
from hwx import gui displacement = gui.DoubleEdit (9.8, units="length") velocity = gui.DoubleEdit (3.2, units="velocity") layout = gui.GridLayout( border = 5, # padding around all children spacing = (5,2), # padding around each child (horizontal, vertical) #spacing = 2, # padding around each child children = ( ("Displacement", displacement), ("Velocity", velocity), ), ) show (layout)