This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: nametowidget throws TypeError for Tcl_Objs
Type: behavior Stage: test needed
Components: Tkinter Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: loewis Nosy List: gpolo, gregcouch, loewis
Priority: normal Keywords:

Created on 2004-04-13 18:38 by gregcouch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20499 - (view) Author: Greg Couch (gregcouch) Date: 2004-04-13 18:38
In some rare cases with Python 2.3.3 and Tcl/Tck 8.4.5,
in particular in tk_focusNext(), self.tk.call returns a
Tcl_Obj instead of a string and then nametowidget()
throws a TypeError when it tries to check if the first
character is a period or not.  Since Tcl/Tk is only
going to get more Tcl_Obj-ectified, the best solution
is to not change tk_focusNext(), but to add two lines
to nametowidget():

   if not isinstance(name, str):
        name = str(name)
msg84375 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-03-29 11:21
This is a duplicate of issue799428, which is already fixed.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40146
2009-03-29 11:21:22gpolosetstatus: open -> closed

nosy: + gpolo
messages: + msg84375

resolution: out of date
2009-02-14 11:33:34ajaksu2setstage: test needed
type: behavior
versions: + Python 2.6
2004-04-13 18:38:40gregcouchcreate