[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2019-10-03 Thread Kevin Walzer


Kevin Walzer  added the comment:

We have committed some fixes to the keyboard code in the past year that seem to 
have fixed this issue. I do not see it in 8.6.10, now as a RC. I believe this 
bug is obsolete at this point.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2019-10-03 Thread Aivar Annamaa


Aivar Annamaa  added the comment:

> to conditionallly bind '' to a function that returns 'break'

I tried capturing all  events. The handler was called for Cmd press,  but 
the crash occurred before the handler was called for the other key.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2019-10-03 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Aivar, thank you for opening the issue.

I believe what I meant about tkinter bind calls would be to conditionallly bind 
'' to a function that returns 'break', thus claiming that the key 
combination has been handled and that tk should ignore it.  The function could 
do nothing or it could display a message.

I don't know if this would work until it were tested.  And it would be a real 
kludgy workaround and until disabled would block the key combo from working 
when the tcl people did fix it.  So not to be done lightly.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2019-10-02 Thread Aivar Annamaa


Aivar Annamaa  added the comment:

I created the ticket: 
https://core.tcl-lang.org/tk/tktview/5849df7852c48cb763b11a11d848a68482b0f828

--
nosy: +Aivar.Annamaa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-09-12 Thread Ned Deily


Ned Deily  added the comment:

The crash can also be reproduced with a Spanish keyboard selected and using the 
Tcl/Tk wish shell edit text demo.  So it's definitely not a Python (tkinter or 
IDLE) issue.  I see that Kevin Walzer, the primary maintainer for Tk on macOS, 
is CC here.  If anyone wants this issue to be addressed, someone should 
probably check the Tck/Tk issue tracker and, if the problem hasn't already been 
reported, open an issue there:

https://core.tcl.tk/tk/ticket

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic


iPodClassic  added the comment:

I see. Well, I guess as far as I can go is to notify about the bug. The part 
about adding tkinter bind calls I have no idea. Should we just close this bug 
report as postponed or something?

Thanks for the help and explanation though! I guess the more I get into Python 
the more things I will find out.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I should have been more specific.  I meant to run the file directly with 
python, with IDLE not involved.  "python3 .../path/to/tk_scroll.py".  Howver, 
running it from an IDLE editor and editing in the resulting non-IDLE text 
window is almost as good.

This reminds me of when trying to enter a French cedilla crashed tk.  That was 
fixed about at tk 8.5.15.

The only thing that could be done from IDLE is to add tk(inter) bind calls.

--
nosy: +wordtech

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic

iPodClassic  added the comment:

Thanks for the more detailed and further explanation. So we at least know it’s 
bound to spanish keyboards only.  I wouldn’t even call it a bothersome bug 
except the key combo you press is very similar to when you try to enter a [ key 
(option+^) ; so you end up losing all code by mistake, when trying to enter an 
often used character on IDLE.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

FWIW I can reproduce the problem with IDLE and tk_scroll.py:

1) Add a spanish keyboard layout in System Preferences (my normal layout is US 
International, matching the text on the keyboard)

2) Select this keyboard using the keyboard menu item

3) Type CMD-^ by pressing "CMD+SHIFT+[" (that is, at the same time press the 
keys CMD, SHIFT and the key where [ is on the keycap). 

With tk_scroll.py the following output is shown in the terminal:

2018-08-22 16:12:22.231 Python[51578:13988425] -[TKMenu submenuAction:]: 
unrecognized selector sent to instance 0x7fe078f56270
2018-08-22 16:12:22.315 Python[51578:13988425] *** Terminating app due to 
uncaught exception 'NSInvalidArgumentException', reason: '-[TKMenu 
submenuAction:]: unrecognized selector sent to instance 0x7fe078f56270'
*** First throw call stack:
(
0   CoreFoundation  0x7fff30e8a2db 
__exceptionPreprocess + 171
1   libobjc.A.dylib 0x7fff58034c76 
objc_exception_throw + 48
2   CoreFoundation  0x7fff30f22db4 
-[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   CoreFoundation  0x7fff30e00820 
___forwarding___ + 1456
4   CoreFoundation  0x7fff30e001e8 
_CF_forwarding_prep_0 + 120
5   AppKit  0x7fff2eb37a43 
-[NSApplication(NSResponder) sendAction:to:from:] + 312
6   AppKit  0x7fff2e82c1bb 
-[NSCarbonMenuImpl performMenuAction:withTarget:] + 155
7   AppKit  0x7fff2e5cb232 -[NSMenu 
_performKeyEquivalentWithDelegate:] + 361
8   AppKit  0x7fff2e5cacd8 -[NSMenu 
performKeyEquivalent:] + 68
9   AppKit  0x7fff2eb366a9 
routeKeyEquivalent + 884
10  AppKit  0x7fff2eb33ce0 
-[NSApplication(NSEvent) sendEvent:] + 1096
11  libtk8.6.dylib  0x000108e7f3ee 
-[TKApplication(TKNotify) sendEvent:] + 39
12  libtk8.6.dylib  0x000108e7f787 
TkMacOSXEventsCheckProc + 434
13  libtcl8.6.dylib 0x000108d16d06 
Tcl_DoOneEvent + 316
14  _tkinter.cpython-37m-darwin.so  0x000108c4701d 
_tkinter_tkapp_mainloop + 269
15  Python  0x00010865884e 
_PyMethodDef_RawFastCallKeywords + 430
16  Python  0x00010865e462 
_PyMethodDescr_FastCallKeywords + 82
17  Python  0x0001087175e0 
call_function + 832
18  Python  0x000108714546 
_PyEval_EvalFrameDefault + 25126
19  Python  0x000108718096 
_PyEval_EvalCodeWithName + 2422
20  Python  0x000108657d81 
_PyFunction_FastCallKeywords + 257
21  Python  0x0001087175bb 
call_function + 795
22  Python  0x000108714560 
_PyEval_EvalFrameDefault + 25152
23  Python  0x000108718096 
_PyEval_EvalCodeWithName + 2422
24  Python  0x00010870e244 
PyEval_EvalCode + 100
25  Python  0x00010874b041 
PyRun_FileExFlags + 209
26  Python  0x00010874a8eb 
PyRun_SimpleFileExFlags + 859
27  Python  0x00010876893c pymain_main 
+ 8044
28  Python  0x000108768da1 _Py_UnixMain 
+ 129
29  libdyld.dylib   0x7fff58c4e015 start + 1
30  ??? 0x0002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

I haven't (and won't) further investigated this problem, but at least this 
should help reproduce the problem.  Its likely a Tk problem, but maybe it is 
possible to tweak IDLE or Tkinter to avoid a crash. 

P.S. The crash does not happen with a US keyboard layout. 

P.P.S. SHIFT+[ appears to be how you enter "^" on a spanish keyboard.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-22 Thread iPodClassic

iPodClassic  added the comment:

Noted the issue with the email replies, sorry!

Do you want me to place the file in any folder in particular? Remember I’m a 
noob at this.  I placed it in the Python app folder, ran the script, played 
around with IDLE and I can still crash it using command + ^ .  Maybe it’s not a 
bug after all and a problem with OSX?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

PS, When replaying by email, please delete the quoted message, as it is 
redundant in the web page display.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Please download and run https://bugs.python.org/file47676/tk_scroll.py.  It is 
a very stripped-down version of an IDLE editor window.  After making a couple 
of edits, to make sure it is working, hit the fatal key combination.  Does it 
still crash?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-21 Thread iPodClassic

iPodClassic  added the comment:

Hello Terry. I installed 3.7 from Python.org
First time it crashed,  I was playing around with some basic code (I’m 
learning), whilst trying to enter [ character (which is option + ^key in 
spanish keyboard), by mistake I pressed command (key next to option) and 
crashed IDLE.
Since I saw the crash report, I tried reproducing in in order to report the 
supposed bug.

Then I restarted IDLE from OSX Spotlight, and successfully crashed it using the 
same key combo several times.

I did not create any custom keyset, just happened by mistake.

Regards,

> El 21 ago 2018, a las 20:02 , Terry J. Reedy  
> escribió:
> 
> 
> Terry J. Reedy  added the comment:
> 
> I believe NSException crashes are due to interaction between tcl/tk and the 
> Mac graphics subsystem, in this case for 10.11.6.
> 
> Did you install 3.7 with the python.org installer or something else?
> How did you start IDLE and what state was it in when you hit command-^?
> 
> Neither of the default Mac key sets use Command-Key-^.  Did you create a 
> custom keyset and bind it to something?
> 
> --
> assignee: terry.reedy ->
> components: +Tkinter, macOS -IDLE
> nosy: +ned.deily, ronaldoussoren
> title: IDLE crashing when pressing Command + ^  (OSX) -> Tkinter crashing 
> when pressing Command + ^  (OSX)
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34455] Tkinter crashing when pressing Command + ^ (OSX)

2018-08-21 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I believe NSException crashes are due to interaction between tcl/tk and the Mac 
graphics subsystem, in this case for 10.11.6.

Did you install 3.7 with the python.org installer or something else?
How did you start IDLE and what state was it in when you hit command-^?

Neither of the default Mac key sets use Command-Key-^.  Did you create a custom 
keyset and bind it to something?

--
assignee: terry.reedy -> 
components: +Tkinter, macOS -IDLE
nosy: +ned.deily, ronaldoussoren
title: IDLE crashing when pressing Command + ^  (OSX) -> Tkinter crashing when 
pressing Command + ^  (OSX)

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com