Re: Hang on a second... or two.

2018-09-26 Thread Israel Hands
Thanks Edward - I'm out and about now till next week but will check this 
out then - thanks for chasing it down I assumed it was a macOS problem.

ta

IH

On Tuesday, 25 September 2018 14:19:38 UTC+1, Israel Hands wrote:
>
> I have a list of items in a node and I write this code to read a line at a 
> time and display the line in the log window. I would like the display to 
> pause for a couple of seconds before going on to the next line -
>
> @language python
> import time
> p.moveToNext()
> for lines in g.splitlines(p.b):
>  g.es(lines)
>  time.sleep(2)
>
> However when I run this on my Mac 10.12.3 with python 2.7 and Leo 5.8b2 - 
> the routine seems to add up all the pauses and then splurge out the output 
> at one go?
>
> ta
>
> IH
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Persistent ID for @auto nodes

2018-09-26 Thread Terry Brown
On Wed, Sep 26, 2018 at 10:25 AM Edward K. Ream  wrote:
>
> On Wednesday, September 26, 2018 at 5:58:18 AM UTC-5, Edward K. Ream wrote:
>
>> It highlights the problem of learning and remembering what Leo can do.
>>
>> Words are not the answer: there are too many of them already.
>>
>> I think pictures would work better.  I've created a project called 
>> "Screenshots tell the story" as a partial remedy.
>
> My present plan is to put lots of screen shots on various pages by scaling 
> them to a small size, with a reminder to readers that they can view the 
> full-size version using the "view image" feature in their favorite browser.  
> The present way is too clunky, imo.

Indeed.  But believe it or not, there isn't a zoom function in
https://www.jqueryscript.net/tags.php?/image%20zoom/ that does exactly
what you want, zoom an image to 100% when clicked. Most of them show a
magnifying glass over the image, the minority that pop up the full
image don't scale it to 100%.  Well they do, but only if it fits
comfortably on the screen to start with.  I guess it wouldn't be so
hard to write one, but hard to believe there's not one that meets such
simple requirements when there's 50?+ to choose from.

Cheers -Terry

> Leo's tutorials should benefit from screen shots.  For example, it would 
> simplify the discussion of @button.
>
> Leo's home page uses this technique. It now reminds viewers that they can see 
> the full-sized image.
>
> Edward
>
> --
> You received this message because you are subscribed to the Google Groups 
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to leo-editor+unsubscr...@googlegroups.com.
> To post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Persistent ID for @auto nodes

2018-09-26 Thread Edward K. Ream
On Wednesday, September 26, 2018 at 5:58:18 AM UTC-5, Edward K. Ream wrote:

It highlights the problem of learning and remembering what Leo can do.
>
> Words are not the answer: there are too many of them already.
>
> I think pictures would work better.  I've created a project called 
> "Screenshots tell the story" as a partial remedy. 
>

My present plan is to put lots of screen shots on various pages by scaling 
them to a small size, with a reminder to readers that they can view the 
full-size version using the "view image" feature in their favorite 
browser.  The present way is too clunky, imo.

Leo's tutorials should benefit from screen shots.  For example, it would 
simplify the discussion of @button.

Leo's home page uses this technique. It now reminds viewers that they can 
see the full-sized image.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Persistent ID for @auto nodes

2018-09-26 Thread Edward K. Ream
On Friday, September 21, 2018 at 9:43:14 AM UTC-5, Kent Tenney wrote:

OK, that's embarrassing.
>

It highlights the problem of learning and remembering what Leo can do.

Words are not the answer: there are too many of them already.

I think pictures would work better.  I've created a project called 
"Screenshots tell the story" as a partial remedy.  This is first on my 
list.  It will use Joe Orr's pictures and movies 
 to describe Leo.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Ready to release 5.8 final?

2018-09-26 Thread Edward K. Ream
There seem to be no significant bugs reported against 5.8 b1.

Matt, are you good with releasing 5.8 final?

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Reversing relationships

2018-09-26 Thread Edward K. Ream
On Tue, Sep 25, 2018 at 5:58 PM Israel Hands  wrote:

> Assuming my information tree is only one child deep and looks a bit like
> this-
>
> Parent 1
> Contains nodes - A B C D
>
> Parent 2
> Contains nodes B C D E
>
> Parent 3
> Contains nodes A C D E
>
> etc.
>
> and I want the best way to reverse the relationship -
>
> So
>
> Node A
> Is in - Parent 1 and Parent 3
>
> Node B
> Is in - Parent 1 and Parent 2
>
> Node C
> is in - Parent 1 and Parent 2 and Parent 3
>
>
> a view or filter would be fine rather than a restructuring. But it would
> be nice if it could be displayed in the 'Edit' pane rather than the output
> of a search in the log pane - is that possible? Well I know it is possible
> but is there some clever Leonine way that already exists to do this?
>

Nodes can't directly contain children that are clones of its parents.
That's a fundamental limitation.  However, the relation "is a parent of
node x" can easily be created, for any node x, in the usual way.

If you do this often, you might want to use uA's.  "Mark" the desired
parents, for any x, in x.u['parents'], using a script, or by hand. Now you
can create the relation (organizer) node for "the parents of x" using
another script.

HTH.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: Hang on a second... or two.

2018-09-26 Thread Edward K. Ream
On Tue, Sep 25, 2018 at 8:19 AM Israel Hands  wrote:

> I have a list of items in a node and I write this code to read a line at a
> time and display the line in the log window. I would like the display to
> pause for a couple of seconds before going on to the next line -
>
> @language python
> import time
> p.moveToNext()
> for lines in g.splitlines(p.b):
>  g.es(lines)
>  time.sleep(2)
>
>

> However when I run this on my Mac 10.12.3 with python 2.7 and Leo 5.8b2 -
> the routine seems to add up all the pauses and then splurge out the output
> at one go?
>

Sounds like a platform-specific issue.  You script works on Windows.

All output eventually goes to LeoQtLog.put, which ends this way:

w.repaint() # Slow, but essential.

I suspect the Mac version of repaint is being "clever", which is neither
helpful nor correct.  You might try this script, but please use rev e9a020b
in devel.  It properly inits the logWidget ivar, something that was always
promised, but never done until now:

@language python
import time
w = c.frame.log.logWidget
for lines in g.splitlines(p.b):
g.es(lines.rstrip())
time.sleep(1)
w.update()

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.