Title: warn user of creation of multiple Tk instances
Type: behavior Stage:
Components: Tkinter Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mps, serhiy.storchaka
Priority: normal Keywords:

Created on 2018-02-12 10:14 by mps, last changed 2018-02-16 20:47 by terry.reedy.

Messages (1)
msg312036 - (view) Author: (mps) Date: 2018-02-12 10:14
tkinter is the first GUI interface used by novices. 
They often get in trouble when they create a new Tk instance instead of a Toplevel.
It would be helpful to output a warning message in this case (i.e. checking _default_root is not None and _support_default_root is True in the Tk initialization).
Thank for your attention and best regards.

- mps.
Date User Action Args
2018-02-16 20:47:09terry.reedysetnosy: + serhiy.storchaka
2018-02-12 10:14:02mpscreate