E. Paine <paineeli...@gmail.com> added the comment:
This is interesting as it works fine on Windows but does the behaviour you describe on Linux. I presume the difference is due to how Tcl/Tk handles the title-bar, in which case this isn't really a tkinter issue and there isn't much that can be done (from a tkinter perspective anyway). When tested (on Linux), however, calling tk.geometry() returned a different value to tk.winfo_geometry(). Calling tk.geometry(tk.geometry()) did not change the window position and everything worked as expected (weird!). I am not sure, though, if this behaviour should be changed. Looking at the Tk man page (https://www.tcl.tk/man/tcl8.6/TkCmd/wm.htm#M42), it says: "Note that this is related to winfo geometry, but not the same. That [...] always reflects Tk's current understanding of the actual size and location of window, whereas wm geometry allows [...] querying of the window manager's understanding of the size and location of the window. This can vary significantly, for example to reflect the addition of decorative elements to window such as title bars, and window managers are not required to precisely follow the requests made through this command." ---------- nosy: +epaine, gpolo, serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40945> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com