From: pmarin on
I want to center a window in another window and tk::PlaceWindow seems
to do it but I don't find the documentation.
From: Donal K. Fellows on
On 4 Apr, 12:09, pmarin <pacog...(a)gmail.com> wrote:
> I want to center a window in  another window and tk::PlaceWindow seems
> to do it but I don't find the documentation.

It's a procedure that is part of Tk's implementation. We don't
document it because we don't support it.

Donal.
From: Alexandre Ferrieux on
On Apr 4, 1:09 pm, pmarin <pacog...(a)gmail.com> wrote:
> I want to center a window in  another window and tk::PlaceWindow seems
> to do it but I don't find the documentation.

If you're talking about centering a toplevel relative to another one,
then indeed a few [winfo] and [wm] commands are enough, and
tk::PlaceWindow shows how to.

Now if it's for an internal widget, [pack] is your friend (with -
expand yes and -anchor center).

-Alex