This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: the window size is bigger than the specific size when create a window with a fix size in Windows platform
Type: behavior Stage: resolved
Components: Tkinter Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: epaine, johnliao, serhiy.storchaka, terry.reedy
Priority: normal Keywords:

Created on 2019-11-13 07:34 by johnliao, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (4)
msg356519 - (view) Author: John Liao (johnliao) Date: 2019-11-13 07:34
from tkinter import *

master = Tk()
master.resizable(False, False)
master.geometry("100x100")

master.mainloop()

When using the simple code above to create a fix size window, the actual window client area's size is about 126x126 pixels.

Environment:
Windows 10 Home 64 bit edition, python 3.7.4, tkinter verion 8.4
msg356716 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2019-11-15 20:23
When I add "master.update(); print(master.geometry())" I get "100x100+104+104".  I have the same Windows and 3.7+, but with tcl/tk *8.6*, not the ancient 8.4.   If you really are using the latter, I strongly suggest updating.  Even if not, your result is likely a tcl/tk 3rd party problem, not a tkinter problem.  So I suspect that this should be closed.
msg371538 - (view) Author: E. Paine (epaine) * Date: 2020-06-15 12:31
I have not tested with tcl/tk 8.4, however it does not appear to be a problem with the tcl/tk 8.6. I don't know when the last release of Python packaged with tcl/tk 8.4 was, however the last release of 8.4 itself was in June 2013.

I agree with Terry that this should be closed, probably as "out-of-date".
msg371567 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-06-15 15:53
IDLE will not even run with tk 8.4, and anything but the last release of 8.5, 8.5.18 I believe, is not a good idea.
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 82964
2020-06-15 15:53:04terry.reedysetmessages: + msg371567
2020-06-15 14:57:39serhiy.storchakasetstatus: open -> closed
resolution: third party
stage: resolved
2020-06-15 12:31:25epainesetnosy: + epaine
messages: + msg371538
2019-11-15 20:23:10terry.reedysetnosy: + terry.reedy, serhiy.storchaka
messages: + msg356716
2019-11-13 07:34:01johnliaocreate