python / python/cpython

[Idle] Indent width bug after adding custom keyset

Open
#124,781 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pending topic-IDLE type-bug
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Bug report

Bug description:

Indent width bug in idle after changing "dedent-region" to "Shift+Tab"

Only tested on Windows with
Python 3.12.6 with tcl/tk 8.6.13

Deleted .idlerc and replicated bug again to confirm.

Steps to replicate:

  1. Delete .idlerc
  2. Launch Idle IDE
  3. Custom keyset > change "dedent-region" to "Shift+Tab"
  4. Close & relaunch Idle IDE

Tab indent defaults to 8 spaces ( remains 4 in GUI)
Have to reconfigure with Alt+U every time you launch Idle.

Annoying enough to be a bug even if it is intended behavior.

CPython versions tested on:

3.12

Operating systems tested on:

Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in IDLE on Windows with Python 3.12 and Tcl/Tk 8.6.13, following the custom keyset and relaunch steps. Trace how the "dedent-region" binding and indentation width are persisted; done means the configured four-space width remains effective after restarting IDLE.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.