[issue39171] Missing default root in tkinter simpledialog.py

2020-12-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue42721 made possible to use these dialogs without default root window. A temporary hidden root window is created for the time of life of a dialog and it is not set as default root window. Positioning dialog wit5hout parent was improved in issue42685.

[issue39171] Missing default root in tkinter simpledialog.py

2020-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is addressed in issue42630. Now a RuntimeError with relevant error message is raised when call askinteger() without explicit parent if there is no default root widget. Autocreating a top-level root window is not good idea. It pops up an empty window

[issue39171] Missing default root in tkinter simpledialog.py

2020-06-14 Thread E. Paine
Change by E. Paine : -- nosy: +epaine versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39171] Missing default root in tkinter simpledialog.py

2020-01-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Dominic Mayers
Dominic Mayers added the comment: Just to add that I realize now that tkinter is designed for applications with a root window, the "application window". That's why little attention is given to a possible missing root. In fact, it's interesting that we have this code in simpledialog.py:

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Dominic Mayers
Change by Dominic Mayers : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +17208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17775 ___ Python tracker ___

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Dominic Mayers
Dominic Mayers added the comment: Again, I just spent a few minutes looking at this, but in the ttk module, in a similar situation, they do: if master is None: if tkinter._support_default_root: master = tkinter._default_root or tkinter.Tk() else:

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Dominic Mayers
Dominic Mayers added the comment: If it's normal, then the error message should perhaps be more informative and user friendly than just a traceback: Traceback (most recent call last): File "./dialog.py", line 6, in integer_value = simpledialog.askinteger('Dialog Title',

[issue39171] Missing default root in tkinter simpledialog.py

2019-12-31 Thread Dominic Mayers
New submission from Dominic Mayers : My first "bug" report here. Not sure I am doing it right. It is just that if I execute the code import tkinter from tkinter import simpledialog tkinter.Tk().withdraw() integer_value = simpledialog.askinteger('Dialog Title', 'What is your