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.

  • control – the control to add.

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

  • opts – extra options for the grid layout.


Applies layout to the added controls.