Possible bug in Tkinter for Python 2.6

Anton Vredegoor anton.vredegoor at gmail.com
Wed Nov 19 08:11:58 EST 2008


On Wed, 19 Nov 2008 10:57:53 +0100
"Eric Brunel" <see.signature at no.spam> wrote:

> I'm trying out Python 2.6 and I found what might be a bug in the
> Tkinter module. How can I report it?

maybe here:
http://bugs.python.org/issue3774
 
> The possible bug is a traceback when trying to delete a menu item in
> a menu where no items have associated commands.

[...]

> It just seems the _tclCommands attribute on menus is initialized to
> None and never changed if none of the items actually have a command

I ran into the same issue after I downloaded PysolFC-1.1 . I actually
uploaded a patch for PysolFC for it for Python26 on Ubuntu and forgot
all about it, thinking it could be some API change. Thanks for nailing
down the problem a bit more and asking the questions here. It helped me
to discover the bug reporting facility. According to the link above
this bug is already reported and fixed, but it's nice to know anyway.

Now for some really strange bug that still breaks PysolFC-1.1 on windows
for me with Python26 ... (Python25 not affected):

....

  File "c:\python26\lib\lib-tk\Tkinter.py", line 1202, in configure
    return self._configure('configure', cnf, kw)
  File "c:\python26\lib\lib-tk\Tkinter.py", line 1193, in _configure
    self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: image "pyimage237" doesn't exist

I suspect there has been some upgrade or new compilation of tcl
that causes this behavior.

A.





More information about the Python-list mailing list