[Tutor] Finding the End of a Def?

Alan Gauld alan.gauld at btinternet.com
Sat Jan 24 12:43:00 CET 2009

"Wayne Watson" <sierra_mtnview at sbcglobal.net> wrote

> I'm using pythonWin. 
> Is there some way to skip from the start of a def to the end?  

That doesn't seem to be supported.

The documentation is found in the help structure under 
PyWin32 Documentation
    -Pythonwin and win32ui
            -Keyboard Bindings

If using Pythonwin keyboard commands you should look at the docs for 
the underlying editing widget Scintilla:


That reveals quite a number of extra navigation commands.
The nearest to what you want is next paragraph (Ctr-] )
Pythonwin does modify a few of the standard commands 
so you need to look in the Pythonwin help first then at Scintilla.

But I'm surprised there are no block movement commands 
given Scintilla's primary goal of supporting programmers

You can of couse use the folding feature to speed navigation between 
functions etc... Keypad * will fold/unfold everything...


Alan Gauld
Author of the Learn to Program web site

More information about the Tutor mailing list