[Tkinter-discuss] Tkinter grid_info()

Russell Owen rowen at uw.edu
Thu Feb 19 21:12:58 CET 2015


On 2/19/15 8:22 AM, Paul Malherbe wrote:
> On 19/02/2015 18:12, Serhiy Storchaka wrote:
>
>> On 17.02.15 17:41, Paul Malherbe wrote:
>>> Running this displays the following error:
>>>
>>> Traceback (most recent call last):
>>>     File "test.py", line 6, in <module>
>>>       grid_info = e.grid_info()
>>>     File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2000, in grid_info
>>>       self.tk.call('grid', 'info', self._w))
>>> TypeError: coercing to Unicode: need string or buffer, _tkinter.Tcl_Obj
>>> found
>> What are Python and Tk versions?
>>
>>
>> _______________________________________________
>> Tkinter-discuss mailing list
>> Tkinter-discuss at python.org
>> https://mail.python.org/mailman/listinfo/tkinter-discuss
>>
> Python 2.7.6
> Tk 8.6

I don't think Python 2.7 is compatible with Tk 8.6. Have you tried 8.5?

I thought Python 3 was intended to be used with Tk 8.6 but this page 
suggests otherwise:
<https://www.python.org/download/mac/tcltk/>

-- Russell




More information about the Tkinter-discuss mailing list