[wingide-users] Scripting Documentation Problem?
Ken Kinder
ken at kenkinder.com
Thu Apr 7 12:16:09 EDT 2005
The manual on script WingIDE starts with this basic example:
http://wingware.com/doc/scripting/example
import wingapi
def test_script(test_str):
app = wingapi.gApplication
v = "Product info is: " + str(app.GetProductInfo())
v += "\nAnd you typed: %s" % test_str
wingapi.gApplication.DisplayMessage("Test Message", v)
Which, if I'm not mistaken, generates this traceback:
Error::Error executing script
.user.internal_script_projectupkeep.test_script
Runtime failure details:
Exception: 'exceptions.AttributeError'
Value = "CAPIApplication instance has no attribute 'DisplayMessage'"
Traceback:
File "2.3/src/command/commandmgr.pyo", line 735, in Execute
File "/home/kkinder/.wingide2/scripts/projectupkeep.py", line 6, in
test_script
wingapi.gApplication.DisplayMessage("Test Message", v)
More information about the wingide-users
mailing list