[wingide-users] convert-indents-to-spaces-only

Wingware Support support at wingware.com
Thu Nov 5 08:05:36 MST 2009

Idan Zaltzberg wrote:
> Hi,
> I'm trying to change space indent size to 4 on active editore (using 
> extension scripts)
> The command:
> wingapi.gApplication.GetActiveEditor().ExecuteCommand('convert-indents-to-spaces-only',indent_size=4)
> runs but it doesn’t change the active document. Can you help?

You want instead:


It's a top-level command, not a per-editor command.  The distinction is a bit hard
to explain but mainly has to do with how these commands are used in the GUI and
how keyboard focus needs to be treated.


Stephan Deibel
Wingware | Python IDE
Advancing Software Development


More information about the wingide-users mailing list