On Jan 24, 2009, at 2:42 PM, Bob Sysero llc Dev wrote:
> I replaced all the code in the CD dForm method afterInitAll with:
>
> self.Form.BusinessButton1.Caption = "Test"
>
> In the terminal the trace back error was:
>
> File "/tmp/tmpKwMpAv.py", line 524, in afterInitAll
> self.Form.BusinessButton1.Caption = "TEST"
> AttributeError: 'NoneType' object has no attribute 'BusinessButton1'
The 'Form' property means "the form that I am contained in". Your
code is in the form itself, which is not contained by another form, so
self.Form = None.
Just change it to self.BusinessButton1.Caption and it should work fine.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]