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 <rep...@bugs.python.org>
<http://bugs.python.org/issue15303>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to