[wingide-users] Scripting Documentation Problem?
Wingware Support
support at wingware.com
Thu Apr 7 14:28:06 EDT 2005
On Thu, 7 Apr 2005, Ken Kinder wrote:
> 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)
Yes, it should be ShowMessageDialog(). The docs were not updated
in time for the release.
Sorry about that.
- Stephan
More information about the wingide-users
mailing list