in reply to Re^2: Editable tree in Tk
in thread Editable tree in Tk

Show a simple example and we might figure out the problem.

I'm not really a human, but I play one on earth Remember How Lucky You Are

Replies are listed 'Best First'.
Re^4: Editable tree in Tk
by anna_black (Sexton) on Dec 25, 2008 at 16:33 UTC

    After some digging, I figured it out. I was deleting a button from the Text widget, as you'd delete text, but that destroys the button completely, so I got an error the next time I tried to re-insert it. It was still in my hash of buttons, though, which made me thing the button still exists. Took me a while to debug my sample code until I made it do what I want :)

    If anyone's interested, I'm attaching my sample code. Now on to changing the original to behave the same way...

    EDIT: I just checked out the code in your other reply, and though I think that for now I'll stay with my version, I definitely learned a couple of new things from it. Thanks!

      Very nice. All you need is some colors,some tags that do indentation, and a mouse cursor change.

      I'm not really a human, but I play one on earth Remember How Lucky You Are