Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE: Enhance module browser #75642

Open
terryjreedy opened this issue Sep 13, 2017 · 9 comments
Open

IDLE: Enhance module browser #75642

terryjreedy opened this issue Sep 13, 2017 · 9 comments
Assignees
Labels
3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

BPO 31461
Nosy @terryjreedy, @csabella
Dependencies
  • bpo-25090: IDLE: remove noisy icons from class (module) browser
  • bpo-31459: IDLE: Rename Class Browser as Module Browser
  • bpo-31460: IDLE: Revise ModuleBrowser API
  • bpo-31552: IDLE: Convert browsers to use ttk.Treeview
  • bpo-37902: Add scrolling for IDLE browsers
  • bpo-1612262: IDLE: Include nested functions and classes in module browser
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/terryjreedy'
    closed_at = None
    created_at = <Date 2017-09-13.22:02:47.281>
    labels = ['expert-IDLE', 'type-bug', '3.7']
    title = 'IDLE: Enhance module browser'
    updated_at = <Date 2019-08-21.04:03:13.658>
    user = 'https://github.com/terryjreedy'

    bugs.python.org fields:

    activity = <Date 2019-08-21.04:03:13.658>
    actor = 'terry.reedy'
    assignee = 'terry.reedy'
    closed = False
    closed_date = None
    closer = None
    components = ['IDLE']
    creation = <Date 2017-09-13.22:02:47.281>
    creator = 'terry.reedy'
    dependencies = ['25090', '31459', '31460', '31552', '37902', '1612262']
    files = []
    hgrepos = []
    issue_num = 31461
    keywords = []
    message_count = 7.0
    messages = ['302123', '302748', '302808', '302810', '302814', '302820', '350049']
    nosy_count = 2.0
    nosy_names = ['terry.reedy', 'cheryl.sabella']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31461'
    versions = ['Python 3.6', 'Python 3.7']

    @terryjreedy
    Copy link
    Member Author

    This is an index issue for keeping track of improvements to IDLE's class browser. They should mostly (or all?) be done in separate issues and PRs.

    Existing issues with patches. Only the first, a 'must', is recently reviewed.
    bpo-1612262 Use 3.7 enhanced pyclbr to show nested classes and functions.
    bpo-6171 Obsolete problem but patch may have useful idea.
    bpo-20827 Display function arguments (would be nice).
    bpo-25090 Remove most icons (also applies to pathbrowser).

    New 'must' issues that need patches.
    bpo-31459 Rename ClassBrowser as ModuleBrowser
    bpo-31460 Redo signature of ModuleBroser.__init__.

    Other potential issues, most of which also affect pathbrowser.
    Make broswers scrollable with mouse. (See turtledemo for how.)
    Start browsers with bigger window.
    Clicking of module in pathbrowser should open module browser.
    Separate toplevel window from browser frame.
    Search tree (including items not visible) with status bar box.
    Utilize ttk.Treeview in browsers.

    Browsers currently use idlelib.tree.TreeWidget. Treeview is not a drop-in replacement because TreeWidget has some of the higher-level app-specific functions that users are expected to add to Treeview. But could Treeview replace the low-level parts of TreeWidget that actually display stuff on the screen?

    Us

    @terryjreedy terryjreedy added the 3.7 (EOL) end of life label Sep 13, 2017
    @terryjreedy terryjreedy self-assigned this Sep 13, 2017
    @terryjreedy terryjreedy added topic-IDLE type-bug An unexpected behavior, bug, or error labels Sep 13, 2017
    @terryjreedy
    Copy link
    Member Author

    bpo-31552 ttk.Treeview

    @terryjreedy terryjreedy changed the title IDLE: Enhance class browser IDLE: Enhance module browser Sep 22, 2017
    @terryjreedy
    Copy link
    Member Author

    I was sitting down to write a patch for bpo-31459, when I discovered yours. If you want to write more module brower patches, such as for bpo-31460 I will do something else.

    @terryjreedy
    Copy link
    Member Author

    bpo-25090 opened with a broad discussion of module broswer and code context, but I focused it on removing the folder and file icons misused for classes and functions in Module Browser. Above, I suggested possibly changing pathbrowser, but I have decided against that. The patch will be trivial, so I am going to do it and see what I think.

    @csabella
    Copy link
    Contributor

    Sorry about that. You can do 31460 if you want. I haven't started it.

    @terryjreedy
    Copy link
    Member Author

    Whoops, patching tree.py to not use icons is not trivial. See new comment on bpo-25090.

    @terryjreedy
    Copy link
    Member Author

    terryjreedy commented Aug 21, 2019

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    @terryjreedy
    Copy link
    Member Author

    Thanks. 6 of 9 tasks are done. Will eventually replace with new task issue with undone items and ideas.

    It appears from experiments that #12345 and gh-12345 have the same effect. After initial dash, either get expanded to open indicator and title followed by # form.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.7 (EOL) end of life topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    Status: No status
    Development

    No branches or pull requests

    3 participants