[wingide-users] Scripting Documentation and CAPIApplication Instance?

Wingware Support support at wingware.com
Thu Sep 1 11:59:28 EDT 2005


On Thu, 1 Sep 2005, Ken Kinder wrote:
> http://wingware.com/doc/scripting/api
> 
> On this page, bullet #3 reads "All of the documented commands which can
> be invoked using the ExecuteCommand() method on wingapi.CAPIApplication."
> 
> When I do something about like that in a script,
> 
>     wingapi.CAPIApplication.ExecuteCommand('fold_expand_all')
> 
> I get,
> 
>     Exception: 'exceptions.TypeError'
>     Value = 'unbound method ExecuteCommand() must be
>         called with CAPIApplication instance as first
>         argument (got str instance instead)'
> 
> Now, I think that it is actually wingapi.gApplication (not
> CAPIApplication) -- which seems to work, but I'm not sure.

Yes, it should be wingapi.gApplication -- that's a typo in the docs.

- Stephan



More information about the wingide-users mailing list