Skip to main content

IDLE Chinese Translation | IDLE 汉化包

Project description

Python IDLE 汉化

Pypi 总下载量 GitHub 总下载量

支持版本: Python 3.9~3.14 的最新版本(跟随 cpython 各分支最新源码)

First Image Second Image


将 IDLE 的界面变为中文。

同时,修复了中文输入法下输入某些字母时误触发快捷键的问题。

使用方法

安装

打开您的命令提示符或终端,输入以下命令:

pip install idcn
# 如果连接速度比较慢的话,请在后边加上 -i https://mirrors.aliyun.com/pypi/simple

安装完成后,打开您的 IDLE,界面即为中文。

卸载

同样输入以下命令卸载:

pip uninstall idcn

卸载 idcn 之后您的 IDLE 将恢复原版英文。

遇到问题

如果在安装汉化之后 IDLE 闪退:

Python 版本过旧:ImportError: cannot import name '_setup_dialog` from 'tkinter.simpledialog' 遇到这个报错,是因为 Python 版本太旧。
以 Python 3.9 为例,最新的 IDLE 3.9 所使用的 _setup_dialog 函数是在 Python 3.9.5 添加的。
如果您的 Python 3.9 版本比 3.9.5 更旧,就会导致 IDLE 找不到这个函数,启动闪退。
要解决这个问题,请安装最新的 Python。(只需要小版本号最新即可,比如更新到 Python 3.9.13
配置文件编码问题:UnicodeDecodeError: 'gbk' codec can't decode byte 0x83 in position 289 IDLE 打不开,可能是因为旧的 IDLE 配置文件的编码类型和新的(UTF-8)不一样。
只需把旧的配置文件删除,然后应该就可以打开了。
Windows:C:\Users\%username%\.idlerc 文件夹
Linux/macOS:~/.idlerc 文件夹

如果汉化仍然闪退,请将 IDLE 的报错内容和 Python 版本告诉我(创建议题 / 电子邮件),我去修复。

您可先 卸载汉化,一切应该会恢复原样。
(如果还是闪退,参考上面配置文件编码问题,删除配置文件,现在应该真的恢复原样了)

开发资料

构建指南:Build.md
测试指南:Test.md

推荐搭配 MapleMono NF CN 字体

项目进展

  • 汉化 turtledemo
  • 汉化 idlelib
  • 修复 IDLE 中文输入法误触问题
  • 制作 pip 汉化包
  • 汉化 idle 附带的文档
  • 把界面变得更现代一些

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

idcn-1.5.2.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

idcn-1.5.2-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file idcn-1.5.2.tar.gz.

File metadata

  • Download URL: idcn-1.5.2.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for idcn-1.5.2.tar.gz
Algorithm Hash digest
SHA256 fd2ba38e78aee16450bb29dafc33c1e77b2b2029647abeb03548f60d87601823
MD5 5b809c035e5b3637aae0da3d7a17fdd2
BLAKE2b-256 880f931792b9eaad6be652eca1d822a4c0a8a0028a5fa8ef1dfa16ca517394ba

See more details on using hashes here.

File details

Details for the file idcn-1.5.2-py3-none-any.whl.

File metadata

  • Download URL: idcn-1.5.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for idcn-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b76138889d2868f77431cfa7e31e272721fc299a6a7c7809ab610f0e75bb94ac
MD5 28d1f00970c2caf24216c8bba1fba4ca
BLAKE2b-256 4b6df94c8161dda8ded1bd98efd4ac01f370f54bafc06d9a998a13aa0158ee3f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page