HList anomalies
David DeGeorge
dld at degeorge.org
Wed Jan 30 20:11:18 EST 2002
Mike Clarkson wrote:
> On Sun, 27 Jan 2002 14:39:22 -0500, David DeGeorge <dld at degeorge.org>
> wrote:
>
> What OS and version of Python?
>
>>I am trying to use the HList widget and I'm starting with the example in
>>Demo/samples directory called Tree.py. Out of the can the example doesn't
>>work as one (I) might expect in that when I close a directory and then
>>reopen it I get Tcl error because the entries already exist.
>
> The Tix demos shipped with Python 2.2 are broken.
>
> I submitted a patch two months ago, it still hasn't been fixed.
> I'll log your bug on python.sourceforge.net, but until someone
> gets around to ixing them, you can use the fixed demos off
> http://tix.sourceforge.net/ in either Python 2.1.x or 2.2.x
>
> Mike
I found the bug thanks. While the TCL documentation says that
path.hlist.info_exists(z) returns a Boolean by the time it gets back to
Python it's a string. So a test for == '0' is all that's needed.
David
More information about the Python-list
mailing list