Discussion:
[pyxpcom] Using document from PyShell
Jonathan Morgan
2009-01-11 11:12:05 UTC
Permalink
I have installed the PyShell extension from the PyXPCOM website in
Firefox. I haven't managed to figure out any way to get access to
document, window and friends, like you have in PyXPCOM Python scripts
and in the Javascript shell. Is there any good way to get at these?

Jon
Todd Whiteman
2009-01-30 20:10:56 UTC
Permalink
Post by Jonathan Morgan
I have installed the PyShell extension from the PyXPCOM website in
Firefox. I haven't managed to figure out any way to get access to
document, window and friends, like you have in PyXPCOM Python scripts
and in the Javascript shell. Is there any good way to get at these?
Hi Jon,

Sorry for the late reply, I've been on holidays till now.

PyShell does not provide any special dom controls (unlike the JSShell).
The PyShell extension was written to make use of PyXPCOM (not PyDOM), in
order to demonstrate Python and XPCOM together.

It probably could be expanded to include the PyDOM controls, thus giving
access to the DOM window, document, etc... I doubt I'll have time to be
working on this enhancement though.

Cheers,
Todd
Jonathan Morgan
2009-01-30 23:08:47 UTC
Permalink
Post by Todd Whiteman
Post by Jonathan Morgan
I have installed the PyShell extension from the PyXPCOM website in
Firefox. I haven't managed to figure out any way to get access to
document, window and friends, like you have in PyXPCOM Python scripts
and in the Javascript shell. Is there any good way to get at these?
Hi Jon,
Sorry for the late reply, I've been on holidays till now.
PyShell does not provide any special dom controls (unlike the JSShell). The
PyShell extension was written to make use of PyXPCOM (not PyDOM), in order
to demonstrate Python and XPCOM together.
It probably could be expanded to include the PyDOM controls, thus giving
access to the DOM window, document, etc... I doubt I'll have time to be
working on this enhancement though.
Any pointers as to how? A particular module to import or anything
like that? I tried fiddling a bit with nsdom, but couldn't find
anything that looked like it was on the right track and gave up.

Thanks,

Jon

Loading...