Using wx.html results AttributError when import wx

I wanted to use wx.html.HtmlWindow, I imported wx.
But it results AttributeError; 'module' object has no attribute 'html'.

It doesn't result error when import wx.html.

Why is to import wx bad?

···

--
View this message in context: http://wxpython-users.1045709.n5.nabble.com/Using-wx-html-results-AttributError-when-import-wx-tp5718127.html
Sent from the wxPython-users mailing list archive at Nabble.com.

wx.html lives in the wx package, but it is not automatically imported
when you do "import wx" -- this is a good thing, as you probably
wouldn't want a whole bunch of potentially large modules that you
aren't using imported into every wx app.

so just use:

import wx.wxhl

or

from wx import html

-Chris

···

On Mon, Jul 22, 2013 at 12:40 PM, hudif <ishibe8@gmail.com> wrote:

I wanted to use wx.html.HtmlWindow, I imported wx.
But it results AttributeError; 'module' object has no attribute 'html'.

It doesn't result error when import wx.html.

Why is to import wx bad?

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov