[Tkinter-discuss] Problem with event.widget.grid_info()

Horace Stoica fhstoica at googlemail.com
Sun Dec 8 12:18:38 CET 2013


Not sure this is the place to submit such a query, please re-direct me 
to the correct place.
I implemented a simple Lights Out game which works with the old Python 
2.6 (and 2.7 in Windows).
After upgrading to SUSE 13.1 which comes with Python 2.7.5 I get the 
following error:

*Exception in Tkinter callback**
**Traceback (most recent call last):**
**  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1470, in __call__**
**    return self.func(*args)**
**  File "./LightsOut.py", line 28, in mouse**
**    grid_info = event.widget.grid_info()**
**  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1978, in grid_info**
**    self.tk.call('grid', 'info', self._w))**
**TypeError: coercing to Unicode: need string or buffer, 
_tkinter.Tcl_Obj found**
I get the same error with Python 3.3.2 (which also comes with SUSE 
13.1). I attached the source code for the game, please run with 
"./LightsOut 3".

Any help would be greatly appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20131208/958fbcb5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LightsOut.py
Type: text/x-python
Size: 3206 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/tkinter-discuss/attachments/20131208/958fbcb5/attachment.py>

More information about the Tkinter-discuss mailing list