[Pythonmac-SIG] Mac OS X 10.3 and Tkinter
Damien JACOMY
djacomy at yahoo.fr
Sat Sep 11 08:51:39 CEST 2004
> Larry,
>
> Thanks for this piece of in formation. I haven¹t seen this page yet.
> But the problem is greater than I think.
> I can¹t use the module Tkinter without IDE,
> because when I use a windowing toolbox outside the IDE, I have another error :
> ImportError: No module named _tkinter,
> although the module _tkinter was installed by package manager.
>
> Thanks
>
> Damien,
>
>
>
>
> Damien,
>
> Your answer can be found in the MacPython FAQ located at
> http://www.pythonmac.org/wiki/FAQ
> I've copied the relevant FAQ below. Good luck!
>
> Larry
>
> 3.7 The IDE crashes when I run a Tkinter script (PyObjC script, wxPython
> script)
>
> The IDE uses the old Carbon GUI toolbox for its windowing. Trying to run a
> script that brings in its own GUI toolbox (such as Tck/Tk, Cocoa, wxWindows or
> anything else) will cause great confusion: redraws and events for the
> toolboxes will be sent to the wrong place, etc. At best things will not work
> as expected, at worst the IDE will crash.
>
> For the time being you should run almost all scripts that use a windowing
> toolbox outside the IDE, either with the pythonw program from a Terminal
> window or with PythonLauncher from the Finder.
>
> On Sep 10, 2004, at 3:10 PM, Damien JACOMY wrote:
>
>> Hi folks,
>>
>> the IDE crashes every time when running this test :
>> import _tkinter => ok
>> import Tkinter => ok
>> Tkinter._test() => the widget open and then CRASH!!!!
>>
>> the stack trace in the Console window is :
>> Fatal Python error: PyEval_SaveThread: NULL tstate
>>
>> Thanks for you help.
>>
>> --
>> Damien JACOMY
>> <djacomy at yahoo.fr>
>>
>>
>> _______________________________________________
>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>>
>>
> Larry Meyn
> Aerospace Operations Modeling Office
>
> M/S 210-10
> NASA Ames Research Center
> Moffett Field, CA 94035-1000
>
> E-mail: Larry.A.Meyn at nasa.gov
> Phone: (650) 604-5038
> Fax: (650) 604-0222
> E-Fax: (425) 944-5526 sent via e-mail
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20040911/ce90919e/attachment-0001.html
More information about the Pythonmac-SIG
mailing list