Title: tkinter geometry string +- when window ovelaps left or top of screen
Type: enhancement Stage:
Components: Documentation, Tkinter Versions: Python 3.7, Python 3.6, Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: 8baWnoVi, docs@python, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-10-12 13:26 by 8baWnoVi, last changed 2017-10-12 13:37 by serhiy.storchaka.

Messages (2)
msg304232 - (view) Author: Peter J (8baWnoVi) Date: 2017-10-12 13:26
the root.geometry() top-level window method returns strings like "212x128+-9+-8" when the window is located in the top left corner. The documentation only describes geometry strings containing + or - location coordinates. If this is correct behaviour, the documentation should provide a better description of the syntax - perhaps a regular expression such as: "\d+x\d+(\+|-|\+-)\d+(\+|-|\+-)\d+" and some text indicating that a +- coordinate indicates a value to the left of or above the screen.

Tested Linux Mint 18, Python 3.5.3, tkinter 8.6

Behaviour is consistent with python 2.7 Tkinter 8.6
msg304234 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-10-12 13:37
Tkinter is just a wrapper around the Tk library. It returns what Tk returns. See Tk documentation:

If you want to improve Tkinter documentation, patches are welcome.
Date User Action Args
2017-10-12 13:37:55serhiy.storchakasetassignee: docs@python
type: behavior -> enhancement
components: + Documentation
versions: + Python 2.7, Python 3.6, Python 3.7, - Python 3.5
nosy: + docs@python, serhiy.storchaka

messages: + msg304234
2017-10-12 13:26:168baWnoVicreate