python / python/cpython

IDLE: Menu fonts too small

Open
#119,301 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Bug report

Bug description:

Pythons native idle menu fonts are too small when up scaling system fonts.
See Discourse topic.
Screenshot from 2024-05-18 12-03-17

What I think would be good is a config menu option for changing the menu font size, failing that a config option in
.idlerc/config-main.cfg
Fixing the scaling in run.py with
font['size'] = round(-0.75*size)
seems like a dirty hack and somewhat arbitrary and does not fix it for me.

CPython versions tested on:

3.12

Operating systems tested on:

Linux

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 with IDLE's run.py and the .idlerc/config-main.cfg option mentioned in the report, then review the linked Discourse discussion for the scaling context. Determine a maintainable way to make menu font sizing correct or configurable on Linux, and verify that the displayed menu fonts are no longer too small when system fonts are scaled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.