On 10/10/12 10:19 AM, Ronald Oussoren wrote:
That odd. IDLE also uses '::tk::mac::ShowPreferences' for the configuration dialog. The
only difference with your script is that the same command is also bound to
'<<open-config-dialog>>'. The code for this all is in
idlelib.macosxSupport.overrideRootMenu in the stdlib.
Indeed it's strange. The stack trace suggests the problem is coming from
Tk, but I cannot reproduce the issue in Tk nor can I reproduce it with
the simple sample Python script. As a result I am not sure what to do here.
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 Tk 0x0b0c2079 0xb000000 + 794745
1 Tk 0x0b03e03d 0xb000000 + 254013
2 Tk 0x0b0159e0 0xb000000 + 88544
3 Tk 0x0b0159ec 0xb000000 + 88556
4 Tk 0x0b0159ec 0xb000000 + 88556
5 Tcl 0x0a0990fa TclServiceIdle + 63
6 Tcl 0x0a07c2f2 Tcl_DoOneEvent + 213
7 Tk 0x0b0386ab 0xb000000 + 231083
8 Tcl 0x0a0990fa TclServiceIdle + 63
9 Tcl 0x0a07c2f2 Tcl_DoOneEvent + 213
10 Tk 0x0b00e59e 0xb000000 + 58782
11 Tcl 0x0a00d4bb 0xa000000 + 54459
12 Tcl 0x0a00e448 Tcl_EvalObjv + 66
13 _tkinter.so 0x00591b45 Tkapp_Call + 725
(_tkinter.c:1379)
14 org.python.python 0x0004acbc PyCFunction_Call + 92
15 org.python.python 0x000a2bcd PyEval_EvalFrameEx + 15277
16 org.python.python 0x000a585d PyEval_EvalCodeEx + 1885
17 org.python.python 0x000a5a19 fast_function + 297
18 org.python.python 0x000a2c6d PyEval_EvalFrameEx + 15437
19 org.python.python 0x000a585d PyEval_EvalCodeEx + 1885
20 org.python.python 0x00035b5b function_call + 331
21 org.python.python 0x0000cad1 PyObject_Call + 97
22 org.python.python 0x0001e80e instancemethod_call + 462
23 org.python.python 0x0000cad1 PyObject_Call + 97
24 org.python.python 0x0009e47e
PyEval_CallObjectWithKeywords + 174
25 org.python.python 0x0001a837 PyInstance_New + 295
26 org.python.python 0x0000cad1 PyObject_Call + 97
27 org.python.python 0x000a2e79 PyEval_EvalFrameEx + 15961
28 org.python.python 0x000a585d PyEval_EvalCodeEx + 1885
29 org.python.python 0x00035b5b function_call + 331
30 org.python.python 0x0000cad1 PyObject_Call + 97
31 org.python.python 0x0009e47e
PyEval_CallObjectWithKeywords + 174
32 _tkinter.so 0x00595820 PythonCmd + 224
(_tkinter.c:2074)
33 Tcl 0x0a00b6d5 TclInvokeStringCommand + 110
34 Tcl 0x0a00d4bb 0xa000000 + 54459
35 Tcl 0x0a00dfb3 0xa000000 + 57267
36 Tcl 0x0a00e334 Tcl_GlobalEval + 72
37 Tk 0x0b0bc7d8 0xb000000 + 772056
38 Tk 0x0b0bc817 0xb000000 + 772119
39 com.apple.CoreFoundation 0x97f8cd11 -[NSObject
performSelector:withObject:] + 65
40 com.apple.AppKit 0x95a79663 -[NSApplication
sendAction:to:from:] + 232
41 com.apple.AppKit 0x95cb3968 -[NSCarbonMenuImpl
performMenuAction:withTarget:] + 247
42 com.apple.AppKit 0x95ae61e9 -[NSMenu
_performKeyEquivalentWithDelegate:] + 374
43 com.apple.AppKit 0x95ae6325 -[NSMenu
_performKeyEquivalentWithDelegate:] + 690
44 com.apple.AppKit 0x95ae5d94 -[NSMenu
performKeyEquivalent:] + 79
45 com.apple.AppKit 0x95ae48e6 -[NSApplication
_handleKeyEquivalent:] + 594
46 com.apple.AppKit 0x959da34f -[NSApplication
sendEvent:] + 5772
47 Tk 0x0b0c591e 0xb000000 + 809246
48 Tk 0x0b0c5ca6 0xb000000 + 810150
49 Tcl 0x0a07c2d1 Tcl_DoOneEvent + 180
50 _tkinter.so 0x00593ef3 Tkapp_MainLoop + 355
(_tkinter.c:2638)
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG