[wingide-users] how do I pass an argument to a command bound
to a keystroke?
support at wingware.com
Thu Apr 22 10:36:18 MDT 2010
Mitchell L Model wrote:
> When a command like move-editor-focus is documented as having an
> argument -- in this case dir=1 -- how do I pass an argument to it?
> I can see three possibilities, but neither of the first two seems to
> work and the third is rather heavy handed, though essentially the same
> as the second.
> (1) a keystroke (like control-U in Emacs) that precedes the keystrokes
> bound to the command (control-X O in Emacs Personality);
> (2) binding a keystroke to a function call, e.g. move-editor-focus(0)
> (3) add a function to one of my script files that simply does
> wingapi.gApplication.ExecuteCommand('move-editor-focus(dir=0) ')
Just bind a key to "move-editor-focus(dir=1)" For various reasons
all args passed to commands are via keyword.
Wingware | Python IDE
Advancing Software Development
More information about the wingide-users