Author: Ed Leafe
Posted: 2009-06-26 at 13:44:30
On Jun 26, 2009, at 12:32 PM, Mike Mabey wrote:
> File "c:\users\ecegra~1\appdata\local\temp\tmpeow3q3.py", line 585,
> in
> initProperties
> self.Form.HelpPage.Page = tmp
> AttributeError: 'NoneType' object has no attribute 'HelpPage'
The initProperties() method fires *before* the object is created. The
'Form' property will return None if the object is not on a Form, or
doesn't yet exist. The only thing that should be set in
initProperties() are properties for the object to be created.
I would recommend that you put the following in the initProperties()
of the dHtmlBox control:
self.Page = /path/to/html/file
That should do what you want.
-- Ed Leafe