[Pythonmac-SIG] newbie stuff

Just van Rossum just@letterror.com
Wed, 5 May 1999 13:42:11 +0200


At 1:27 PM +0200 5/5/99, tomtom wrote:
>> > Is it indeed true that you can't use Tkinter applications with Python
>>without
>> > first installing Tk? If so I'd like to hear what the errors are if you do
>> > attempt it so I can try to fix it (time permitting).
>> > --
>>
>> sorry i may have caused unnecessary turmoil here.
>> when i tried to run idle it didnīt and gave me some errors. havenīt
>>documented
>> it but i *think* there was some import error concerning tk_inter. so i
>> downloaded tcl-tk and tried some *other* stuff that uses tk and it
>>worked so i
>> thought that mustve been it. just now i rechecked idle and it still dont
>>run,
>> python tells me this:
>>
>> Traceback (innermost last):
>>   File "8.5:Python 1.5.2b1:Tools:idle:idle", line 3, in ?
>>     PyShell.main()
>>   File "8.5:Python 1.5.2b1:Tools:idle:PyShell.py", line 604, in main
>>     fixwordbreaks(root)
>>   File "8.5:Python 1.5.2b1:Tools:idle:EditorWindow.py", line 498, in
>>fixwordbreaks
>>     tk.call('tcl_wordBreakAfter', 'a b', 0) # make sure word.tcl is loaded
>> TclError: invalid command name "tcl_wordBreakAfter"

Sorry for my late reply: this is a version problem. Apparently we use an
older Tcl/Tk than Guido wrote Idle for. If you comment out the line that
uses 'tcl_wordBreakAfter', it should work.

Just