Message165070
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:50 | Drew.French | set | recipients:
+ Drew.French |
2012-07-09 08:25:50 | Drew.French | set | messageid: <1341822350.55.0.995662615633.issue15303@psf.upfronthosting.co.za> |
2012-07-09 08:25:49 | Drew.French | link | issue15303 messages |
2012-07-09 08:25:48 | Drew.French | create | |
|