The WSH file below generates the Python error "NameError: There is no
variable named 'MessageBox'". I was hoping that WSH would enable Python to
use functions from other languages like VBScript does.
After posting this to the Python newsgroup, one response said you
(ActiveState) may have a global variable in you distribution that could make
this work. Is this true? If so, how does it work and would you point me
to the docs. If not, is this a feature your could/would add?
Thanks,
Don
**********************************************
<?xml version="1.0"?>
<!-- HelloWorld.wsf -->
<job>
<script language="VBScript">
<![CDATA[
Function MessageBox(strText)
MsgBox strText
End Function
]]>
</script>
<script id="Python" language="Python">
<![CDATA[
strText1 = "Hello, world!"
strText2 = "I'm Text From Python."
MessageBox(strText1 + "\n" + strText2)
]]>
</script>
</job>
_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython