[issue15303] Minor revision to the <BaseWidget._setup> method in Tkinter

Serhiy Storchaka report at bugs.python.org
Sun Dec 23 19:55:10 CET 2012


Serhiy Storchaka added the comment:

Here is a patch against 3.4 which contains proposed OP change and a lot of similar changes in different places. I'm not sure that this should be considered as a bug fix and not as an enhancement.

Drew, as a workaround you can implement __bool__() method which returns True for your widget. Or even better, do not make your container sequence-like.

----------
keywords: +patch
nosy: +serhiy.storchaka
stage: needs patch -> patch review
versions: +Python 3.4 -Python 2.7
Added file: http://bugs.python.org/file28410/tkinter_widget_is_none.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15303>
_______________________________________


More information about the Python-bugs-list mailing list