Hi folks. I am embedding gecko into my application via XRE_InitEmbedding(). The idea is to have xul (or html) as the GUI while the core of the application is written in c++. i am exporting certain functionality of the application to python. i want to do the event-binding in xul/html (via oncommand="blub()").
Sidenote: Unfortunately using xulrunner as the main executeable is not an option (because i am currently rendering gecko into an texture to render it it an OpenGL application and i have to do the setup (exchanging nsWindow/nsChild) before opening the first window) The problem now is, that my test-html/xul (tried both) document works with xulrunner (pyxultest works also) but not when i open it via nsWindowWatcher::OpenWindow(). what am i missing here. am i suposed to open the windows another way. must i initialize gecko another way. do i have to set some option like enable.python=true? any help and pointers are welcome. please note, that the file i am testing is a local file pytest.xul -------------------------------------------------------------------------------------- <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/ there.is.only.xul" id="mainWindow" orient="vertical" script-type="application/x-python" > <button id="test" label="thats the label" style="border:1px solid green;" flex="1" /> <script type="application/x-python"> document.getElementById("test").label += "|it works in python" </script> <script type="application/javascript"> document.getElementById("test").label += "|it works in javascript" </script> </window> -------------------------------------------------------------------------------------- pytest.html -------------------------------------------------------------------------------------- <html> <body> <input id="test" type="text" value="an input box" /> <script type="application/x-python"> document.getElementById("test").label += "|it works in python" </script> <script type="application/javascript"> document.getElementById("test").label += "|it works in javascript" </script> </body> </html> -------------------------------------------------------------------------------------- _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding