On Wed, 5 Nov 2008 07:50:10 -0600
"Edward K. Ream" <[EMAIL PROTECTED]> wrote:

> There are already some (undocumented?) hooks for adding icons to the
> tk tree code.  See:
> 
> Code-->Gui Tkinter classes-->@thin leoTkinterTree.py-->Drawing...
> (tkTree)-->drawX...-->drawUserIcons & helper-->drawUserIcon

These are the internals, sure, the API I would say are the
Cmds -> Icons... -> Insert-icon et al. commands:

Code-->Core classes-->@thin
leoEditCommands.py-->editCommandsClass-->icons...

+ icons...
        +  Helpers
        - deleteFirstIcon
        - deleteIconByName
        - deleteLastIcon
        - deleteNodeIcons
        - insertIcon
        - insertIconFromFile

I was hoping that was part of the API that wasn't disappearing, cleo is
probably the major user, but there are other examples of use, not to
mention who knows how heavily those Cmds are used directly by people
just wanting to decorate their trees for easier navigation.

> It's not clear that these uA's are best ways of specifying
> node-specific icons, but they do work in the Tk world.

Sure, API stability, or at least feature compatibility, is more
important that internals like that.  Who cares how it works if it
works ;-)

Cheers -Terry

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to