A howto for rClick?

2008-04-13 Thread Alex Polite
I'd like to get up to speed with rClick, are there any howtos/code examples out there that I can learn from? alex -- http://polite.se --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to

Cleo icons won't work on linux

2008-04-13 Thread marko
Hello, I've got Leo running on debian linux, but the cleo icons won't load. Leo Log Window... Leo 4.4.8 final, build 1.244 , April 6, 2008 python 2.5.0, Tk 8.4.12, Pmw 1.3 linux2 reading: /home/marko/marko.leo can not import Image module from PIL can not import ImageTk module can not load imag

Re: A howto for rClick?

2008-04-13 Thread bobjack
On Apr 13, 9:20 am, "Alex Polite" <[EMAIL PROTECTED]> wrote: > I'd like to get up to speed with rClick, are there any howtos/code > examples out there that I can learn from? > > alex > > --http://polite.se Hi Alex, Yes there is a testAtPopup.leo in the leo/test folder which contains examples o

Re: A howto for rClick?

2008-04-13 Thread bobjack
PS You must use leo from the Trunk if you want to develop using rClick as the module was in a state of flux at the time of the last leo release and the new API is significantly different from the 4.4.8 version. Bob --~--~-~--~~~---~--~~ You received this message b

Linux installer 4.4.8-final

2008-04-13 Thread marko
Hello, I've noticed that the 4.4.8-final installer, when compared to 4.4.3- beta-2 creates an extra leo directory in the tree structure : /usr/ local/lib/leo/leo/ This extra leo directory is not included in the part of the script that generates the leo startup script : echo "python ${LEO_PREF

nav_button bug and hook problems

2008-04-13 Thread bobjack
nav_buttons had a bug such that the marks dialog box was not being populated when a leo file was opened. I fixed this on the trunk. While I was investigating this bug I put a trace on the update method and discovered that when I closed the file and reopened it, it was not only receiving hooks tha

Re: Cleo icons won't work on linux

2008-04-13 Thread marko
Running leo under python 2.4 solves the problem. On Apr 13, 7:16 pm, marko <[EMAIL PROTECTED]> wrote: > Hello, > > I've got Leo running on debian linux, but the cleo icons won't load. > > Leo Log Window... > Leo 4.4.8 final, build 1.244 , April 6, 2008 > python 2.5.0, Tk 8.4.12, Pmw 1.3 > linux2

Eureka!!! Unified nodes

2008-04-13 Thread Edward K. Ream
I believe it is possible to unify vnodes and tnodes into what I'll just call a **unified node**, or node for short. A node will contain headline, body text, attributes, and a (Python) list of the node's children. I have been searching for this Aha for more than 10 years. The aha is that all we

Re: Eureka!!! Unified nodes

2008-04-13 Thread Edward K. Ream
On Apr 13, 7:20 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > It appears that Leo will, relatively soon, move to the unified-node world. Compatibility with existing code and scripts should be no big deal. Indeed, unified nodes will contain .v and .t ivars, inited in the ctor as follows: sel

Re: Cleo icons won't work on linux

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 03:21:12 -0700 (PDT) marko <[EMAIL PROTECTED]> wrote: > > Running leo under python 2.4 solves the problem. Probably Python Imaging Library (PIL) and the ImageTk module aren't installed from 2.5's point of view, but are available to 2.4. Cheers -Terry --~--~-~--~---

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 06:31:37 -0700 (PDT) "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > DAG's are used in 3-D > cad formats. This is interesting stuff. Blender is a very cool 3D rendering system, here's a page describing its outliner: http://wiki.blender.org/index.php/Manual/The_Outliner And

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 05:20:54 -0700 (PDT) "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > - Unified nodes are *precisely* the nodes contemplated in the graph > world. /me grins > Recall that a key part in my rejection of the graph world > was a realization that iterators in any graph world are muc

Re: Selecting from multiple Leo versions - Best practice exist?

2008-04-13 Thread TL
The CMD command with the /C directive runs Leo as a subprocess and allows me to close the dos window while Leo remains running. It would be nice if it closed automatically once it has finished openning Leo. TL --~--~-~--~~~---~--~~ You received this message becaus

Re: Selecting from multiple Leo versions - Best practice exist?

2008-04-13 Thread TL
I have updated the "Development Environment" page on the Wiki with my posting on Windows Explorer support for specifying which Leo branch to invoke. I encourage others to update there "best practices" on this topic and any others. Note: The Wiki is configured (or hard coded) to auto-detect camel

Events - Handling multiple handlers

2008-04-13 Thread TL
Both the "Vim" and the "FileActions" plugins register "iconclick2" to have functions called when a node is double clicked. I assume the first entry in the "@enabled-plugins" node registers first and gets called first when the event occurs. Correct? Is there a way for an event handler to return

Re: Eureka!!! Unified nodes

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 10:07 AM, Terry Brown <[EMAIL PROTECTED]> wrote: > > Recall that a key part in my rejection of the graph world > > was a realization that iterators in any graph world are much more > > complex than Leo's iterators. > > True, but now you're on the slippery slope :-) True.

Re: Vim and Open-With plugin enhancements

2008-04-13 Thread TL
Correction: The changes attributed to the "Open With" plugin were actually made in the mod_tempfname.py plugin. This plugin is not enabled by default. The following line must be added to the @enabled-plugins node in leoSettings.leo or, better, in myLeoSettings.leo: mod_tempfname.py Sorry for th

Re: Eureka!!! Unified nodes

2008-04-13 Thread Kent Tenney
> I don't think so. In my present thinking it will not be possible to > possible to access a *node's* parents--you can only access the parents of a > node *at a particular position*. Positions give you parents instantly. Does this mean that Leo must load and process the xml before parents are k

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 13:18:04 -0500 "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > > > P.S. As a matter of symmetry, a unified node could contain a list > > > of the node's parents. This is not necessary: it is analogous to > > double-linking a linked list. > > > > Unnecessary, but a big speed boo

Re: Eureka!!! Unified nodes

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 4:10 PM, Kent Tenney <[EMAIL PROTECTED]> wrote: > > > I don't think so. In my present thinking it will not be possible to > > possible to access a *node's* parents--you can only access the parents > of a node *at a particular position*. Positions give you parents instantl

Re: Eureka!!! Unified nodes

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 4:15 PM, Terry Brown <[EMAIL PROTECTED]> wrote: > > So, how do you iterate through a set of clones? You could search the > whole tree of course, any maybe iterating through clones is uncommon > enough that this would be ok. Or not? No, it's *much* easier than this. Giv

Re: Support for fixed .leo files on trunk

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 1:22 AM, Ville M. Vainio <[EMAIL PROTECTED]> wrote: > > On Sun, Apr 13, 2008 at 3:22 AM, Edward K. Ream <[EMAIL PROTECTED]> > wrote: > > > Aside: the present position is represented by a series of child > > indices, like 0.3.4. This scheme is unaffected by this discussio

Re: Linux installer 4.4.8-final

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 5:06 AM, marko <[EMAIL PROTECTED]> wrote: > > Hello, > > I've noticed that the 4.4.8-final installer, when compared to 4.4.3- > beta-2 creates an extra leo directory in the tree structure : /usr/ > local/lib/leo/leo/ > > This extra leo directory is not included in the part

Re: nav_button bug and hook problems

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 5:07 AM, bobjack <[EMAIL PROTECTED]> wrote: > > nav_buttons had a bug such that the marks dialog box was not being > populated when a leo file was opened. I fixed this on the trunk. > > While I was investigating this bug I put a trace on the update method > and discovered t

Re: nav_button bug and hook problems

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 4:57 PM, Edward K. Ream <[EMAIL PROTECTED]> wrote: I never heard of pyDispatcher. Time to google... > It looks like pyDispatcher is highly rated. It's definitely worth looking at. It could have even more important uses within Leo: there are many places where a listener/

Re: Events - Handling multiple handlers

2008-04-13 Thread Edward K. Ream
On Sun, Apr 13, 2008 at 12:27 PM, TL <[EMAIL PROTECTED]> wrote: > > Is there a way for an event handler to return a value indicating that > no additional handlers should be called? According to the node: Code-->Core classes...-->@thin leoPlugins.py-->doHandlersForTag in leoPy.leo, if a handle

Re: Eureka!!! Unified nodes

2008-04-13 Thread Terry Brown
On Sun, 13 Apr 2008 16:44:04 -0500 "Edward K. Ream" <[EMAIL PROTECTED]> wrote: > > So, how do you iterate through a set of clones? You could search > > the whole tree of course, any maybe iterating through clones is > > uncommon enough that this would be ok. Or not? > > No, it's *much* easie

Re: A howto for rClick?

2008-04-13 Thread Kayvan A. Sylvan
On Sun, Apr 13, 2008 at 02:34:21AM -0700, bobjack wrote: > PS > > You must use leo from the Trunk if you want to develop using rClick as > the module was in a state of flux at the time of the last leo release > and the new API is significantly different from the 4.4.8 version. Hi! I enabled rCli

Re: Eureka!!! Unified nodes

2008-04-13 Thread Kayvan A. Sylvan
On Sun, Apr 13, 2008 at 06:31:37AM -0700, Edward K. Ream wrote: > > It appears that Leo will, relatively soon, move to the unified-node world. > > Compatibility with existing code and scripts should be no big deal. > Indeed, unified nodes will contain .v and .t ivars, inited in the ctor > as foll