[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-10 Thread Ben Li-Sauerwine


New submission from Ben Li-Sauerwine :

One would expect that calling TKinter.Tk.geometry(tk.winfo_geometry()) would be 
idempotent.  However, based on the system window frame, it is not and doing so 
moves the window down the screen.

Running the example below reproduces the issue.

--
components: Tkinter
files: tkinter_ex.py
messages: 371236
nosy: Ben Li-Sauerwine
priority: normal
severity: normal
status: open
title: TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent
versions: Python 3.6
Added file: https://bugs.python.org/file49225/tkinter_ex.py

___
Python tracker 
<https://bugs.python.org/issue40945>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-10 Thread Ben Li-Sauerwine


Change by Ben Li-Sauerwine :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue40945>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40945] TKinter.Tk.geometry(Tk.winfo_geometry()) should be idempotent

2020-06-12 Thread Ben Li-Sauerwine


Ben Li-Sauerwine  added the comment:

Thanks for clarifying.  Using Tk.geometry() instead of Tk.winfo_geometry() does 
indeed resolve the issue on Linux.

Weird that using Tk.winfo_geometry() is idempotent under Windows, though.

--

___
Python tracker 
<https://bugs.python.org/issue40945>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com