Message228557
> 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. |
|
Date |
User |
Action |
Args |
2014-10-05 10:43:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, gpolo, BreamoreBoy, martin.panter |
2014-10-05 10:43:51 | serhiy.storchaka | link | issue18131 messages |
2014-10-05 10:43:51 | serhiy.storchaka | create | |
|