How to make python as default in XULrunner for dynamically added elements (xpcom) ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vigneshwaran P

    How to make python as default in XULrunner for dynamically added elements (xpcom) ?

    hi,

    I am creating a small application using Xulrunner with python through pythonext.

    My xulrunner version 1.9.1
    My OS Ubuntu 10.10

    I am able to set python as default in XUL and can access xpcom from python. And inline python code also works well in non-dynamic elements.

    My problem is, when i dynamically add elements to Xulrunner using python, the elements are added as excepted and working well but if i specify any python inline coding as event attribute in the element[which is dynamically added] , the inline code is interpreted not by python but by javascript [even python is set as default in window tag as an attribute value].

    I am a beginner in XULrunner, so any help or guidance in this problem is greatly appreciated .

    Thanks in advance.
Working...