This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Drew.French
Recipients Drew.French
Date 2012-07-09.08:25:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In the <BaseWidget._setup> method, <master> is evaluated as a Boolean (when Tkinter attempts to find a parent for the widget). I think it should really be evaluated against <None>, seeing as that is the default <master> keyword argument value for most widgets. I ran into problems with this when making a container widget class that inherited from the <Canvas>, then implementing the <__len__> magic method. When the length was zero the widget would evaluate as false, which would prevented me from packing widgets inside my container widget.

I attached a revised version of the method.
Date User Action Args
2012-07-09 08:25:50Drew.Frenchsetrecipients: + Drew.French
2012-07-09 08:25:50Drew.Frenchsetmessageid: <>
2012-07-09 08:25:49Drew.Frenchlinkissue15303 messages
2012-07-09 08:25:48Drew.Frenchcreate