This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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.
Date User Action Args
2020-12-15 18:42:15serhiy.storchakasetrecipients: + serhiy.storchaka, epaine, shippo_
2020-12-15 18:42:15serhiy.storchakasetmessageid: <>
2020-12-15 18:42:15serhiy.storchakalinkissue42630 messages
2020-12-15 18:42:15serhiy.storchakacreate