Hi Ed,
On Fri, Jun 26, 2009 at 11:44 AM, Ed Leafe <[email protected]> wrote:
>
> 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.
>
>
Thanks for the suggestion. I don't know why I have trouble remembering at
which point various objects come into existence.
This was actually something I had already tried, but had gotten an error for
some reason. I've put the code back where it belongs and get this
traceback:
Traceback (most recent call last):
File "PreferenceManager.py", line 22, in <module>
main()
File "PreferenceManager.py", line 15, in main
app.start()
File "C:\Python25\lib\site-packages\dabo\dApp.py", line 372, in start
self.setup()
File "C:\Python25\lib\site-packages\dabo\dApp.py", line 328, in setup
self.initUIApp()
File "C:\Python25\lib\site-packages\dabo\dApp.py", line 364, in initUIApp
self.uiApp.setup()
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\uiApp.py", line 412, in
setup
frm = self.dApp.MainForm = dabo.ui.createForm(mfc)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\__init__.py", line 1145,
in createForm
frm = cls(*args, **kwargs)
File "c:\users\ecegra~1\appdata\local\temp\tmp5kvvjl.py", line 507, in
__init__
obj = self.getCustControlClass('dHtmlBox_84958')(currParent)
File "c:\users\ecegra~1\appdata\local\temp\tmp5kvvjl.py", line 641, in
__init__
dabo.ui.dHtmlBox.__init__(self, parent=parent,
attProperties=attProperties,*args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dHtmlBox.py", line 37, in
__init__
*args, **kwargs)
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dPemMixin.py", line 86,
in __init__
self._initProperties()
File "C:\Python25\lib\site-packages\dabo\dObject.py", line 177, in
_initProperties
self.initProperties()
File "c:\users\ecegra~1\appdata\local\temp\tmp5kvvjl.py", line 647, in
initProperties
self.Page = os.path.join(os.getcwd(), 'help.htm')
File "C:\Python25\lib\site-packages\dabo\ui\uiwx\dHtmlBox.py", line 127,
in _setPage
self.LoadFile(val)
File "C:\Python25\lib\site-packages\wx-2.8-msw-ansi\wx\html.py", line
1012, in LoadFile
return _html.HtmlWindow_LoadFile(*args, **kwargs)
TypeError: in method 'HtmlWindow_LoadFile', expected argument 1 of type
'wxPyHtmlWindow *'
I'm not sure I understand what's going on here. Why is it choking on that
parameter?
Thanks,
Mike M.
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
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]