Missing Leo's headline graphics

66 views
Skip to first unread message

tfer

unread,
Dec 11, 2012, 6:33:36 AM12/11/12
to leo-e...@googlegroups.com
I don't get the boxes that used to be to the left of each headline, are they still supposed to be there?

Some setting that got changed/corrupted?, or a version of Qt I should be using?

Leo Log Window

Leo 4.11 devel, build 5419, 2012-07-13 15:02:10

Python 2.7.2, qt version 4.7.4
Windows 6, 1, 7601, 2, Service Pack 1

leoID=trf (in C:\Users\B-T\.leo)

load dir: C:\VC\Bzr\leo-editor\trunk\leo\core

global config dir: C:\VC\Bzr\leo-editor\trunk\leo\config


Tom


Edward K. Ream

unread,
Jan 15, 2013, 11:25:50 AM1/15/13
to leo-e...@googlegroups.com
On Tue, Dec 11, 2012 at 5:33 AM, tfer <tfeth...@aol.com> wrote:
I don't get the boxes that used to be to the left of each headline, are they still supposed to be there?

Are you talking about the icon box?  It should always be there.

User-supplied icons also work for me.  Iirc, some icons may have been removed from the distro, which might affect you.  However:

1. The todo plugin works as expected.

2. The following script inserts a (persistent) icon:

    fn = g.os_path_finalize_join(g.app.loadDir,
        '..','Icons','Tango','16x16','status','error.png')
    c.editCommands.insertIconFromFile(path=fn)
    c.bodyWantsFocusNow()

3. The insert-icon command works.

HTH.

Edward

tfer

unread,
Jan 15, 2013, 12:42:09 PM1/15/13
to leo-e...@googlegroups.com
Yes, I meant the icon box.  I wonder what is breaking this for me. Quickly updated to latest, still missing icon box, just the open/collapse triangles present.  Todo icons work.

Leo Log Window

Leo 4.11 devel, build 5568, 2013-01-15 12:30:53

Python 2.7.2, qt version 4.7.4
Windows 6, 1, 7601, 2, Service Pack 1


Is there some Python/qt problem with these versions?  I'm using enthoughts Python distribution, (the free one), which I did upgrade a while back, can't remember if that is when this started.


Is there some setting that might effect this.


Tom

Terry Brown

unread,
Jan 15, 2013, 5:52:50 PM1/15/13
to leo-e...@googlegroups.com
On Tue, 15 Jan 2013 09:42:09 -0800 (PST)
tfer <tfeth...@aol.com> wrote:

> Yes, I meant the icon box. I wonder what is breaking this for me. Quickly
> updated to latest, still missing icon box, just the open/collapse triangles
> present. Todo icons work.

This is really weird, because I just looked at the code and it's as I
remembered, getCompositeIconImage() builds a caches images with the
todo icons and the icon box joined together.

tfer - you could add the line "print val" at the top of that function
(it has only one unique definition in the codebase), and see what kind
of output you get. It should be a lot of numbers from 0 to 15,
depending on the status of each node.

Also check that .../leo/Icons/box00.GIF ... .../leo/Icons/box15.GIF
exist in your distro.

Ha, there's a difference, the todo icons are .png, not .gif, so if
somehow your distro stopped supporting gifs, that could explain it.

Seeing technically .gifs are somehow license encumbered, or did that
get dropped?, I guess we could switch to using .pngs. A really purist
distro might not support .gifs, although that's hard to believe.

Cheers -Terry

tfer

unread,
Jan 15, 2013, 11:02:10 PM1/15/13
to leo-e...@googlegroups.com
Thanks Terry and Ed, this got me looking in the right area, somehow when I did the update to the Enthought Python distribution, I ended up leaving my startup shortcut pointing to the old distribution.  Set it over to the new one and Leo has all its icons again.

While getting to this I tried Terry's suggestion, tried "print val" and started from console2, (basically Windows 'dos' wrapped), no output noted.  Then I put in "g.es(val)" and got log pane output.  Thought I was missing stdout logging, just checked and saw I was calling 'pythonw.exe', which apparently does not use a stdout stream.

Anyway, thanks again.

Edward K. Ream

unread,
Jan 16, 2013, 10:14:32 AM1/16/13
to leo-e...@googlegroups.com
On Tue, Jan 15, 2013 at 10:02 PM, tfer <tfeth...@aol.com> wrote:
Thanks Terry and Ed, this got me looking in the right area, somehow when I did the update to the Enthought Python distribution, I ended up leaving my startup shortcut pointing to the old distribution.  Set it over to the new one and Leo has all its icons again.

Excellent.  Thanks for the report.

Edward
Reply all
Reply to author
Forward
0 new messages