Title: IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1
Type: behavior Stage: patch review
Components: IDLE Versions: Python 3.5, Python 3.4, Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: CaribbeanCruise, amaury.forgeotdarc, gpolo, roger.serwy, terry.reedy
Priority: normal Keywords: patch

Created on 2009-08-20 08:31 by CaribbeanCruise, last changed 2014-10-03 03:09 by terry.reedy.

File name Uploaded Description Edit
tcl_validation.diff gpolo, 2009-08-21 15:12
Messages (6)
msg91762 - (view) Author: (CaribbeanCruise) Date: 2009-08-20 08:31
I tried to assign a new key(lctrl+lshift instead of lctrl+F5) for run-
mode in option in v.2.5.2. I tried the new key and it didn't work. And 
then I got lots of messages.
So I killed the IDLE and the rest of python. And run IDLE again, 
background process indicates some activity for 5secs. And then it was 
gone. No IDLE window showed up. 
So I uninstalled the 2.5.2. and installed the v.3.1.1. The installation 
process went ok, but when I starts IDLE. Nothing happens.
I tried and run in cmd, while I'm a vista user and got this:

Traceback (most recent call last):
  File "C:\Python31\Lib\idlelib\", line 11, in <module>
  File "C:\Python31\Lib\idlelib\", line 1388, in main
    shell = flist.open_shell()
  File "C:\Python31\Lib\idlelib\", line 277, in open_shell
    self.pyshell = PyShell(self)
  File "C:\Python31\Lib\idlelib\", line 813, in __init__
    OutputWindow.__init__(self, flist, None, None)
  File "C:\Python31\Lib\idlelib\", line 16, in __init__
    EditorWindow.__init__(self, *args)
  File "C:\Python31\Lib\idlelib\", line 135, in __init__
  File "C:\Python31\Lib\idlelib\", line 961, in 
    text.event_add(event, *keylist)
  File "C:\Python31\Lib\idlelib\", line 359, in event_add
    widget.event_add(self, virtual, seq)
  File "C:\Python31\Lib\tkinter\", line 1353, in event_add
_tkinter.TclError: bad event type or keysym "Shift"

What do I do to get this up and running?
msg91812 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-08-21 09:56
- find your .idlerc directory (probably in %USERPROFILE%)
- edit config-extensions.cfg
- remove the <Control-Shift> binding

- write a patch that refuses invalid keysims.
msg91830 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-08-21 15:12
Here is a patch that changes IDLE to refuse invalid key bindings.
msg91863 - (view) Author: (CaribbeanCruise) Date: 2009-08-22 12:59
Thanks for the help.

I removed that external row and now it's up and running again :D May I 
please have an explanation on what causes that behavior and why that 
solution on that file worked?

I'm just a n00b/beginner level on programming and I will someday try to 
understand that patch, how I can write that patch and put it in place to 
make it work.

Thank you very much for the help and guidance.
msg91866 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-08-22 17:38
Please, understand that the bug tracker is a place to provide help and
not to seek for help. The c.l.p newsgroup (more on is a more appropriate place to
continue this discussion.

Nevertheless, the attached patch was generated from python trunk so if
you want to apply it by hand you will need to check what file it changed
(first lines on it) and then check line offsets (@@ ... @@) to know
where to hand-apply each hunk. Applying any patch this way may cause
more trouble than anything else, be careful.
msg228301 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-10-03 03:09
#21519 also patched key validation
Date User Action Args
2014-10-03 03:09:15terry.reedysetmessages: + msg228301
versions: + Python 3.5, - Python 3.3
2013-07-07 19:18:09ned.deilysetnosy: + terry.reedy, roger.serwy
2013-07-07 16:26:29christian.heimessetstage: patch review
versions: + Python 3.3, Python 3.4, - Python 3.1, Python 3.2
2010-08-03 21:51:05terry.reedysetversions: - Python 2.6, Python 2.5
2009-08-23 03:09:25gpolosettype: performance -> behavior
stage: needs patch -> (no value)
2009-08-22 17:38:16gpolosetstatus: pending -> open

messages: + msg91866
versions: + Python 2.6, Python 2.7, Python 3.2
2009-08-22 12:59:15CaribbeanCruisesetstatus: open -> pending

messages: + msg91863
versions: + Python 2.5, - Python 2.6, Python 2.7, Python 3.2
2009-08-21 15:12:44gpolosetfiles: + tcl_validation.diff
versions: + Python 2.6, Python 2.7, Python 3.2
nosy: + gpolo

messages: + msg91830

keywords: + patch
2009-08-21 09:56:53amaury.forgeotdarcsetnosy: + amaury.forgeotdarc

messages: + msg91812
stage: needs patch
2009-08-20 08:31:19CaribbeanCruisecreate