Tk Source Code

View Ticket
Login
Ticket UUID: 3538401
Title: Documentation: winfo/wm geometry
Type: Bug Version: obsolete: 8.5.11
Submitter: bll123 Created on: 2012-06-27 13:56:10
Subsystem: 65. Generic Window Operations Assigned To: dkf
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2012-07-05 16:52:25
Resolution: Fixed Closed By: dkf
    Closed on: 2012-07-05 09:52:25
Description:
winfo geometry and wm geometry return different values, yet the differences are not documented.

I see, it is in the FAQ, but not the main documentation.

5.7. What is the difference between wm and winfo?
wm (short for window manager) is used for managing or finding information about toplevels, while winfo (short for widget info) is for querying info about all types of widgets.

For example, wm geometry . will give you the size of the main toplevel, including window manager decoration, as perceived by the window manager. However, winfo geometry . returns only the size of . as perceived by Tk.
User Comments: dkf added on 2012-07-05 16:52:25:

allow_comments - 1

dkf added on 2012-06-28 16:43:33:
[winfo geometry] is well defined in terms of other [winfo] subcommands. [wm geometry] is a mess.