Hi,

I'm using PyXPXOM to access an embedded mozilla from a Python program
running on Windows. I've implemented a very simple XPCOM component in
C++ that I can access from python. The component has:

- A method CreateWindow that takes an HWND as argument, and creates an
embedded Moz in that window.

- A readonly property of type nsIWebBrowser that gives me access to
the created browser.

I can create a Tkinter window from python (tkinter = python's built in
GUI toolkit, a wrapper for Tk), and pass the HWND to my XPCOM
xomponent. This is very nice as it allows me to control the running
mozilla interactively from the Python prompt.

All I've done so far is created some basic XUL controls and it seems
to be working. But, tabbox is not working. If I load the following
(this snippet is the only child of the <window> tag)...

<tabbox orient='vertical'>
  <tabs orient='horizontal'>
    <tab label='a'/>
  </tabs>
  <tabpanels flex='100%'>
    <label value='1'/>
  </tabpanels>
</tabbox>

...I get an error dialog:

###!!! ASSERTION: classinfo had CONTENT_NODE set but node did not
implement nsIContent!  Fasten your seat belt.: 'content', file
d:/mozbuild/svg/mozilla/caps/src/nsScriptSecurityManager.cpp, line 758

And mozilla crashes. Any ideas? Let me know what extra info you need.

Thanks.

Tom.
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to