Author serhiy.storchaka
Recipients epaine, serhiy.storchaka, shippo_
Date 2020-12-15.18:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608057735.6.0.544672540014.issue42630@roundup.psfhosted.org>
In-reply-to
Content
Currently, a root window is created implicitly only when you create a Tkinter or Ttk widget. i.e. things which should be visible to user. When you create image, variable, or use global utility function like getbool() or mainloop() or image_types() it raises an error: AttributeError or NamedError, or sometimes RuntimeError with error message like "Too early to create image: no default root window". With PR 23781 it will always raise RuntimeError instead of AttributeError or NamedError with corresponding error message.

"no default root window" is correct. There is no yet default root window required by the function. After you create it, explicitly or implicitly, you could use that function.

It could be odd if image_type() will successfully return a result with a side effect of popping up a window.
History
Date User Action Args
2020-12-15 18:42:15serhiy.storchakasetrecipients: + serhiy.storchaka, epaine, shippo_
2020-12-15 18:42:15serhiy.storchakasetmessageid: <1608057735.6.0.544672540014.issue42630@roundup.psfhosted.org>
2020-12-15 18:42:15serhiy.storchakalinkissue42630 messages
2020-12-15 18:42:15serhiy.storchakacreate