Message383087
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:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, epaine, shippo_ |
2020-12-15 18:42:15 | serhiy.storchaka | set | messageid: <1608057735.6.0.544672540014.issue42630@roundup.psfhosted.org> |
2020-12-15 18:42:15 | serhiy.storchaka | link | issue42630 messages |
2020-12-15 18:42:15 | serhiy.storchaka | create | |
|