Layout

Walk layouts (like those Qt Widget layouts they were inspired by) are based on a limited number of grid-based variants. The list of implemented layouts includes the following:

  • GridLayout: Items are laid out in a regular grid
  • VBoxLayout: Items are placed in a single column
  • HBoxLayout: Items are aligned in a single row

If you have explored the Qt UI Builder or are familiar with Qt, you may be expecting a fourth layout, FormLayout, which is not currently present in Walk. This can be simulated, however, using a two-column GridLayout and applying alignment properties as required.

In addition to the standard layouts, there are various widgets (some of which are invisible in the final interface) that help group UI elements and provide ...

Get Hands-On GUI Application Development in Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.