Python in HTAs

Marcel van den Dungen m_vddungen at
Sun Oct 17 23:25:16 CEST 2004

Does anybody know how to use Python as the scripting language for HTML
applications? I tried the following, but I get a script error ('Object
expected') on the body element.

<title>Python controlled HTML application</title>
<hta:application id="oApplication">
<script language="python">
def Onload():
    alert('hello from python')
    document.all["idspan"] = 'hello from python'
<body onload="Onload();">
<span id="idspan" ></span>

Could not find any example on Google either.


More information about the Python-list mailing list