Re: Code academy: icons

2016-02-19 Thread Edward K. Ream
On Sat, Feb 6, 2016 at 3:17 PM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: > On Sat, 6 Feb 2016 14:36:29 -0600 > "'Terry Brown' via leo-editor" wrote: > > > If you'd tested > > 'icons' instead of 'lineYOffset', you'd have seen no problem. > >

Re: Code academy: icons

2016-02-07 Thread Richard Andersen
Thank you so much, Terry. That really helps clarify. I'll switch to 'icons' in my code. Will also update my full build from the trunk in the next day or two well. -Richard -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe

Re: Code academy: icons

2016-02-06 Thread 'Terry Brown' via leo-editor
On Sat, 6 Feb 2016 14:36:29 -0600 "'Terry Brown' via leo-editor" wrote: > If you'd tested > 'icons' instead of 'lineYOffset', you'd have seen no problem. I see you were following an example that tested 'lineYOffset'. Also, I see no use of 'lineYOffset' in the code

Re: Code academy: icons

2016-02-06 Thread 'Terry Brown' via leo-editor
On Sat, 6 Feb 2016 11:00:38 -0800 (PST) Richard Andersen wrote: [snip] > ''' create a listing of all nodes which have icons ''' > > aList = [p.copy() for p in c.all_unique_positions() if 'lineYOffset' > in p.u] #print('\n'.join([p.h for p in aList])) >

Re: Code academy: icons

2016-02-06 Thread Richard Andersen
Would certainly appreciate understanding where my mistake is in my code below.It's rather perplexing because the GUI is doing what I want, but something isn't changing within the underlying data structure. The icon manipulations scripts are really great, except for one. Adding icons

Re: Code academy: icons

2016-01-31 Thread 'Terry Brown' via leo-editor
On Sat, 30 Jan 2016 18:18:17 -0600 "Edward K. Ream" wrote: > On Sat, Jan 30, 2016 at 5:57 PM, Largo84 wrote: > > I struggled w/ Git at first too, but found that Sourcetree > > made it a > > lot

Re: Code academy: icons

2016-01-30 Thread Edward K. Ream
On Sat, Jan 30, 2016 at 11:33 AM, Richard Andersen wrote: > Sorry if this is a really basic question. > > I'm running the Leo 5.1 release.How do I take advantage of changes > such as this one described here, where very recent changes have been made > to Leo's core? >

Re: Code academy: icons

2016-01-30 Thread 'Terry Brown' via leo-editor
On Sat, 30 Jan 2016 13:23:20 -0600 "Edward K. Ream" wrote: > On Sat, Jan 30, 2016 at 11:33 AM, Richard Andersen > wrote: > > > Sorry if this is a really basic question. > > > > I'm running the Leo 5.1 release.How do I take advantage of > > changes

Re: Code academy: icons

2016-01-30 Thread Edward K. Ream
On Sat, Jan 30, 2016 at 1:50 PM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: ​> ​ you ​ ​ can also download > https://github.com/leo-editor/leo-editor/archive/master.zip > as linked here > http://leoeditor.com/download.html (the "Latest" link). > > Which gives you the

Re: Code academy: icons

2016-01-30 Thread Richard Andersen
Sorry if this is a really basic question. I'm running the Leo 5.1 release.How do I take advantage of changes such as this one described here, where very recent changes have been made to Leo's core? -Richard On Friday, January 29, 2016 at 8:24:06 AM UTC-8, Edward K. Ream wrote: > > On Fri,

Re: Code academy: icons

2016-01-30 Thread Largo84
I struggled w/ Git at first too, but found that Sourcetree made it a lot easier for me. I still don't really 'get Git', but I'm using it nonetheless. For pull requests only, it's pretty simple. Rob... On Saturday, January 30,

Re: Code academy: icons

2016-01-30 Thread Richard Andersen
Thanks, guys. I downloaded the latest .zip folder and have the latest Leo working. I'll need to explore git further, as it looks like it would allow me to stay current more efficiently than the .zip download.I'm glad to know about both options. -Richard On Saturday, January 30, 2016 at

Re: Code academy: icons

2016-01-30 Thread Edward K. Ream
On Sat, Jan 30, 2016 at 5:57 PM, Largo84 wrote: I struggled w/ Git at first too, but found that Sourcetree > made it a lot > easier for me. > ​I too started with SourceTree. Alas, it has severe performance problems.

Code academy: icons

2016-01-29 Thread Edward K. Ream
During our conference call, someone asked whether nodes may have more than one icon. Indeed they can. For example, running this script will insert three icons. Running the script again will insert three more. You can delete the icons using the delete-node-icons command. I'm having trouble

Re: Code academy: icons

2016-01-29 Thread Edward K. Ream
On Fri, Jan 29, 2016 at 9:08 AM, Edward K. Ream wrote: You can delete the icons using the delete-node-icons command. > ​With a minor change to Leo's core, it is now easy to delete the icons of the node at position p: c.editCommands.deleteNodeIcons(p=p) As Terry points

Re: Code academy: icons

2016-01-29 Thread Edward K. Ream
On Fri, Jan 29, 2016 at 10:01 AM, Edward K. Ream wrote: ​ ​> ​ I would have thought that calling c.editCommands.deleteNodeIcons() should work. ​Never mind. I made several errors. I changed deleteNodeIcons by adding a p keyword argument so that it could work on any node,

Re: Code academy: icons

2016-01-29 Thread 'Terry Brown' via leo-editor
From: Edward K. Ream <edream...@gmail.com> To: leo-editor <leo-editor@googlegroups.com> Sent: Friday, January 29, 2016 9:08 AM Subject: Code academy: icons During our conference call, someone asked whether nodes may have more than one icon.  Indeed they can. For exam

Re: Code academy: icons

2016-01-29 Thread Edward K. Ream
On Fri, Jan 29, 2016 at 9:30 AM, 'Terry Brown' via leo-editor < leo-editor@googlegroups.com> wrote: ​>> ​I'm having trouble deleting icons programmatically. I'm investigating.​ c.editCommands.setIconList(p, []) > c.redraw() > > If you don't want to delete them all: > > icons =