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" <leo-editor@googlegroups.com> 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 base except setting to 3 when > icons are added and 0 when they're deleted, I think it's debris from > the old Tk interface. > > So I've deleted all reference to it, and you'll need to use > > aList = [p.copy() for p in c.all_unique_positions() > if 'icons' in p.u] > > for getting the list of nodes with icons. > > Hope that's not breaking too much of anything for anyone - banking on > most people other that Edward ;-) picking 'icons' rather than > 'lineYOffset' as a text target :-) > ​Excellent. 'icons' is obviously a much better key into p.v.u. 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.