problem with wxHtmlWindow

Tim Roberts timr at probo.com
Mon Apr 15 01:49:41 EDT 2002


"manouche" <emmanuel at onda-latina.com> wrote:
>
>What are the libraries I have to import in order to use wxHtmlWindow?

from wxPython.html import *

This works; I've done it.

>I tried importing the libraries of the example
>
>from wxPython.wx import *
>from wxPython.html import *
>import wxPython.lib.wxpTag
>
>but my python shell says that:

This traceback doesn't make sense.  The final line does not reference
wxHtmlWindow.  Did you cut and paste this from Boa?  Could you possibly
have missed a couple of lines?

>Traceback (most recent call last):
>  File "D:\prog\boa1\wxApp1.py", line 22, in ?
>    main()
>  File "D:\prog\boa1\wxApp1.py", line 18, in main
>    application = BoaApp(0)
>  File "C:\PYTHON22\lib\site-packages\wxPython\wx.py", line 1587, in
>__init__
>    _wxStart(self.OnInit)
>  File "D:\prog\boa1\wxApp1.py", line 12, in OnInit
>    self.main = wxFrame1.create(None)
>  File "D:\prog\boa1\wxFrame1.py", line 6, in create
>  File "D:\prog\boa1\wxFrame1.py", line 23, in __init__
>  File "D:\prog\boa1\wxFrame1.py", line 19, in _init_ctrls
>    self.SetClientSize(wxSize(624, 642))
>NameError: global name 'wxHtmlWindow' is not defined
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list