tkgui.layout module

Layout helpers for the TKinter GUI.

class tkgui.layout.GridLayouter(cols, pad=(0, 0))[source]

Bases: object

Class to automate grid layouts.

add(control, span=1, **opts)[source]

Adds a control to the grid.

Parameters:
  • control – the control to add.

  • span – the number of columns to span (defaults to 1).

  • opts – extra options for the grid layout.

layout()[source]

Applies layout to the added controls.