Serhiy Storchaka added the comment:

> I am thinking that all uses of _default_root should raise something like
> WhateverError("An explicit master is required when _default_root is None or
> deleted.")  Serhiy, what do you think?

Technically all works (raises some exception), but I agree that error message 
can be more friendly. But _default_root is implementation detail. This name 
doesn't mean anything for non-experienced user (and experienced user already 
knows about these mystical RuntimeError and NameError). The message should say 
something like "No default root window" if _default_root is None and "The 
master argument is mandatory after calling NoDefautRoot()" if _default_root 
isn't set.

And now we came to the way how to create default root window. Issue4343 looks 
related (I haven't looked at it close however).

Second issue was fixed in issue22068.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18131>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to