[PEAK] Trellis-ified wx Dialog
grant at osafoundation.org
Thu Jul 19 17:31:22 EDT 2007
Oh, I added it so I could .
On 19 Jul, 2007, at 14:09, Phillip J. Eby wrote:
> At 01:37 PM 7/19/2007 -0700, Grant Baillie wrote:
>> On 19 Jul, 2007, at 13:05, Phillip J. Eby wrote:
>>> At 12:46 PM 7/19/2007 -0700, Grant Baillie wrote:
>>>> On 19 Jul, 2007, at 11:55, Phillip J. Eby wrote:
>>>> Hmmm ... if I do that, then the read rule gets called with a widget
>>>> of None.
>>> Eh? That shouldn't be possible -- isn't the code passing in a
>>> widget in the kwargs to EditBridge? The setting of 'widget' should
>>> be happening before *any* rules are called. Can you check to make
>>> sure that you are passing a non-None widget to EditBridge()?
>> I am, but it looks as if the read rule is called before widget is
>> > /Users/grant/work/chandler-1.0/samples/wxTemp/wxTemperature.py
>> (29) __init__()
>> -> super(EditBridge, self).__init__(*args, **kw)
> That's the problem right there: my 2nd draft of EditBridge didn't
> *have* an __init__() method; getting rid of it was in fact the
> point of the 2nd draft. See the code quoted above - no __init__
> method is there.
Oh, sorry, I had inserted an __init__ just to stick in a pdb.set_trace
() and call to super(...).__init__. But, even without that __init__,
I get the NoneType Error from line 33 of the attached code (with
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2225 bytes
Desc: not available
Url : http://www.eby-sarna.com/pipermail/peak/attachments/20070719/7c76e02c/wxTemperature.bin
More information about the PEAK