home *** CD-ROM | disk | FTP | other *** search
- # gridinfo.tcl --
- #
- # Provides helper routines to get the column and row of a particular
- # widget.
- #
- # $Id: gridinfo.tcl,v 1.1.1.1 2004/03/23 21:04:21 davidw Exp $
-
- package provide gridinfo 0.1
-
- namespace eval gridinfo {
- namespace export row column
- }
-
- proc gridinfo::row {w} {
- array set info [grid info $w]
- return $info(-row)
- }
-
- proc gridinfo::column {w} {
- array set info [grid info $w]
- return $info(-column)
- }
-
-