简体   繁体   中英

IDLE crashes for certain buttons on Mac

I am running OS X 10.9.5, and IDLE w/ Python 3.4.1.

When I press the buttons for (¨/^) or (´/`), IDLE crashes and the program closes.

This causes me to lose changes to files, as well as time. My fellow students using Mac experience the same problem.

Anyone know how I can fix this?

I am pretty sure that the version of tcl/tk you are using is having a problem with your non-US national keyboard (which country?) Un-shifted, those key produce non-ascii diacritic chars, ord(´)==180 and ord(¨)==168 , that are usually composed with another character.

The download page, at the bottom, directs OSX users to this mac-tck/tk page. That page says to install ActiveTcl 8.5.16.0 from ActiveState. The older tcl/tk 8.5.9 from Apple has a problem with composition chars that has since been fixed

In the meanwhile, start Idle in a console window with python3 -m idlelib (I think python3 is the correct name for OSX) and you should see some error messages that should verify the above. This may also solve the problem of Idle stopping.

我遇到类似的问题,尝试英式PC键盘对我有用

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM