TIP #37 Version 1.1: Uniform Rows and Columns in Grid

This is not necessarily the current version of this TIP.


TIP:37
Title:Uniform Rows and Columns in Grid
Version:$Revision: 1.1 $
Author:Peter Spjuth <peter dot spjuth at space dot se>
State:Draft
Type:Project
Tcl-Version:8.4
Vote:Pending
Created:Tuesday, 19 June 2001

Abstract

This TIP proposes to add a -uniform option to grid rowconfigure and grid columnconfigure so as to make it easier to create layouts where cells are constrained to have identical dimensions.

Introduction

The geometry managers in Tk are very powerful and can do most things needed to layout a GUI. One thing that is tricky to do though is to put widgets in rows or columns of the same width. This would be useful for example to layout a row of buttons symmetrically. This could easily be done with the grid manager if an additional option is added.

Specification

Anywhere column is used below, the same applies to row too.

A new option, -uniform, is added to grid columnconfigure. The option takes an arbitrary string, the default value being the empty string. Any colu