Space Between Rows

Steven Taschuk staschuk at
Fri Mar 14 18:20:21 CET 2003

Quoth Paul E. Lehmann:
> Using Tkinter how does one add space between two rows?
> I just want to add space between two rows not space above AND below a row.
> It seems as if pady or ipady will add space both above and below and not
> just either above or below a row.

I assume from your reference to "rows" that you're using the grid
geometry manager.

Afaik there's no way to insert padding on just one side of a cell.
Three methods for achieving the same visual effect come to mind:
use an invisible "spacing" widget (such as a Frame with explicit
height but no contents), use sticky widgets and control the cell
heights explicitly, or use the place geometry manager (shudder).

Steven Taschuk                Aral: "Confusion to the enemy, boy."
staschuk at      Mark: "Turn-about is fair play, sir."
                              (_Mirror Dance_, Lois McMaster Bujold)

More information about the Python-list mailing list