Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #101490

Re: Which Python editor has this feature?

From Terry Reedy <tjreedy@udel.edu>
Newsgroups comp.lang.python
Subject Re: Which Python editor has this feature?
Date 2016-01-11 16:21 -0500
Message-ID <mailman.22.1452547329.13488.python-list@python.org> (permalink)
References <830f6f97-22dd-488c-9dd6-e9cd92844307@googlegroups.com> <mailman.0.1452481145.13488.python-list@python.org> <5f1619e5-83ff-449e-b7e5-2374a37bd50b@googlegroups.com>

Show all headers | View raw


On 1/11/2016 6:04 AM, jfong@ms4.hinet.net wrote:

> I am studying the PyUSB package now as the learning object of how to
> write a Python program in a "formal" way. In those modules, there are
> many comment inserted between codes to explain what it does. It's
> good to the user comprehension, but also easily makes a Class size
> expanded to over 100 lines. Also many Classes has the same named
> method such as __getitem__ etc. When searching a specific name I
> usually have to roll back the screen a few times to find out what
> Class I am looking at. That's really annoy.

IDLE has an optional 'code context' feature that shows header lines that 
have scrolled up off the top of the screen.  This would let you see 
which class you are in,

In current releases, Code Context is configured in the Extensions tab of 
the Settings dialog.  For previous releases after Aug 2014, it was 
configured in the separate Extensions dialog.

The most important setting is the (fixed) number of lines in the context 
box (default 3).  I would like to make the box re-size as needed, so the 
outermost context (like the class statement) is always visible without 
using more screen space than needed.

The context is currently read-only.  Clicking on context lines does 
nothing.  As a result of this thread, I am thinking that clicking on a 
context line should scroll up the main text window to display that line 
at the top (and remove that line and any below from the context box).  I 
*think* that this should be fairly easy.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-10 17:59 -0800
  Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-11 13:58 +1100
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:04 -0800
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-11 16:21 -0500
        Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 17:51 -0800
          Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-12 02:55 -0500
            Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-12 00:28 -0800
              Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-12 17:27 -0800
                Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-13 12:51 +1100
                Re: Which Python editor has this feature? Steven D'Aprano <steve@pearwood.info> - 2016-01-13 13:04 +1100
                Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-13 00:04 -0800
                Re: Which Python editor has this feature? wxjmfauth@gmail.com - 2016-01-13 07:24 -0800
            Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-12 17:20 -0800
              Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-13 04:10 -0500
                Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-13 16:48 -0800
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 11:14 +1100
      Re: Which Python editor has this feature? Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-11 22:55 -0200
        Re: Which Python editor has this feature? Grant Edwards <invalid@invalid.invalid> - 2016-01-12 18:31 +0000
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 12:09 +1100
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-12 03:27 -0500
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-12 21:18 +1100
      Re: Which Python editor has this feature? Terry Reedy <tjreedy@udel.edu> - 2016-01-13 04:05 -0500
      Re: Which Python editor has this feature? Chris Angelico <rosuav@gmail.com> - 2016-01-13 21:09 +1100
  Re: Which Python editor has this feature? Tim Chase <python.list@tim.thechases.com> - 2016-01-10 20:37 -0600
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:08 -0800
      Re: Which Python editor has this feature? Tim Chase <python.list@tim.thechases.com> - 2016-01-11 05:59 -0600
  Re: Which Python editor has this feature? Rustom Mody <rustompmody@gmail.com> - 2016-01-10 19:49 -0800
    Re: Which Python editor has this feature? Frank Haun <fh@fhaun.de> - 2016-01-11 11:54 +0000
  Re: Which Python editor has this feature? Gordon Levi <gordon@address.invalid> - 2016-01-11 19:40 +1100
    Re: Which Python editor has this feature? jfong@ms4.hinet.net - 2016-01-11 03:16 -0800
    Re: Which Python editor has this feature? Fabio Zadrozny <fabiofz@gmail.com> - 2016-01-26 16:10 -0200
  Re: Which Python editor has this feature? Fabio Zadrozny <fabiofz@gmail.com> - 2016-01-26 16:09 -0200

csiph-web