[wxPython-users] Re: xrced help

Robin Dunn robin at alldunn.com
Fri Feb 9 16:12:00 PST 2007


Lee Connell wrote:
> Eli,
> 
> Did you see a posting earlier I sent about using assigning a variable from
> wx.xrc using XRCCTRL?  The type is wxHtmlWindow however it is saying it is
> of type wxScrollableWindow.  I seen previous posts that this was a bug, but
> that was back in 2.7, I'm running 2.8.1.  I think I can use wxPyTypeCast()
> for now, but is there something wrong I'm doing?

You need to import wx.html in your Python code, so the typeinfo for the 
wxHtml classes is loaded and will be checked when the wrappers are 
trying to find the type of object to construct and return to you from 
XRCCTRL.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list