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

Unfotunately, I'm limited by what's installed at work... So Gtk2 is not an option.

I actually found that embedding tree-like buttons into a Text widget is good enough for my purposes. Now I just have to figure out what I'm doing wrong when I'm trying to replace the button by a different one... :)

Replies are listed 'Best First'.
Re^3: Editable tree in Tk
by zentara (Cardinal) on Dec 25, 2008 at 13:23 UTC
    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

      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