who has the idea about the missing "icon box" before node in the outline pane?

37 views
Skip to first unread message

HaveF

unread,
Oct 9, 2014, 10:44:47 PM10/9/14
to Leo-editor-googlegroup
Hi, all,

I don't know when my icon boxes are lost.
I have tried to remove my .leo dir for reset my setting, 
but have no success.

If I add task property to the node, the relevant icon 
can appear, but I still can not see the icon box before 
node in the outline pane.

What can I do now? Thanks!

--
--
Sincerely,

HaveF

HaveF

unread,
Oct 9, 2014, 10:50:46 PM10/9/14
to leo-e...@googlegroups.com

I find the reason, but don’t know what to do, reinstall qt?

QPainter::begin: Paint device returned engine == 0, type: 3
Failed to init. painter for icon
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 3
Failed to init. painter for icon
QPainter::end: Painter not active, aborted

Terry Brown

unread,
Oct 9, 2014, 11:13:34 PM10/9/14
to leo-e...@googlegroups.com
On Thu, 9 Oct 2014 19:50:45 -0700 (PDT)
HaveF <iamap...@gmail.com> wrote:

>
>
> I find the reason, but don’t know what to do, reinstall qt?

This seems to be exactly the problem discussed in this thread, from
earlier today:
https://groups.google.com/forum/#!topic/leo-editor/lH5n1M3s3W8

So maybe just installing the latest Leo will fix it, if not, we'd need
a complete listing of Leo version and OS you're using, i.e. this text
from the top of the Leo log pane:

Leo Log Window
Leo 4.11 final, build 20141009160125, Thu Oct 9 16:01:25 CDT 2014
Git repo info: branch = master, commit = 1ab971296b33
Python 2.7.6, PyQt version 4.8.6
linux2

but with more detail on the OS.

Incidentally the difference between icon box images and task property
icons you noticed seems to be that the former are gifs and the latter
pngs, I think it has something to do with rendering the different image
types in a QPainter vs. in a QImage, but was hoping it was fixed at
Leo build: 20141009150608 / eb6cd7b for all configurations.

Cheers -Terry

HaveF

unread,
Oct 9, 2014, 11:29:28 PM10/9/14
to Leo-editor-googlegroup

Very interesting.


Paul:

I've been a long time on and off again user of Leo.

Anaconda ...

pull code from github

This is exactly what I have done except I’m in windows.

QPainter::begin: Paint device returned engine == 0, type: 3
Failed to init. painter for icon
QPainter::end: Painter not active, aborted
QPainter::begin: Paint device returned engine == 0, type: 3
Failed to init. painter for icon
QPainter::end: Painter not active, aborted

** isPython3: False
Leo 4.11 final, build 20141009183903, Thu Oct  9 18:39:03 CDT 2014
Git repo info: branch = master, commit = e6e325eedf35
Python 2.7.6, PyQt version 4.8.6
Windows 7 AMD64 (build 6.1.7601) SP1

Actually, I find this problem long time ago(maybe several month?), but
didn’t report that because of busying time…

Sorry about that.


--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/JGNcv2pLjS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.



--
--
Sincerely,

HaveF

Terry Brown

unread,
Oct 10, 2014, 9:56:31 AM10/10/14
to leo-e...@googlegroups.com
On Thu, 9 Oct 2014 22:13:31 -0500
"'Terry Brown' via leo-editor" <leo-e...@googlegroups.com> wrote:

> Incidentally the difference between icon box images and task property
> icons you noticed seems to be that the former are gifs and the latter
> pngs, I think it has something to do with rendering the different
> image types in a QPainter vs. in a QImage, but was hoping it was
> fixed at Leo build: 20141009150608 / eb6cd7b for all configurations.

"Incidentally" but at this point this also seems like the simplest way
to fix this problem, just convert all the leo/Icons/box??.GIF files to
png, which I had done at one point yesterday already...

for i in *GIF; do convert $i ${i%%GIF}png; done

They seem to be referenced from only one area in the code, hopefully
this will be the end of this somewhat nebulous problem :-)

Cheers -Terry

Terry Brown

unread,
Oct 10, 2014, 10:11:41 AM10/10/14
to leo-e...@googlegroups.com
On Fri, 10 Oct 2014 10:44:14 +0800
HaveF <iamap...@gmail.com> wrote:

> Hi, all,
>
> I don't know when my icon boxes are lost.
> I have tried to remove my .leo dir for reset my setting,
> but have no success.

Ok,

Leo 4.11 final, build 20141010090626, Fri Oct 10 09:06:26 CDT 2014
Git repo info: branch = master, commit = a7a2f1eee525

drops the use of GIF files in favor of PNG, I think that's going to
eliminate the issues some PyQt installs have been seeing with not
rendering the icon boxes.

Cheers -Terry

HaveF

unread,
Oct 10, 2014, 10:15:51 AM10/10/14
to Leo-editor-googlegroup
It works. 

Thank you, Terry!

--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/JGNcv2pLjS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.



--
--
Sincerely,

HaveF

Terry Brown

unread,
Oct 10, 2014, 10:46:39 AM10/10/14
to leo-e...@googlegroups.com
On Fri, 10 Oct 2014 22:15:19 +0800
HaveF <iamap...@gmail.com> wrote:

> It works.
>
> Thank you, Terry!

Good. Thanks to imagemagick not preserving colors in image
conversions, iconbox grey levels are off in
a7a2f1ee / 20141010090626 but fixed in
e0b36747 / 20141010093627

Cheers -Terry

HaveF

unread,
Oct 18, 2014, 12:27:57 AM10/18/14
to Leo-editor-googlegroup

@Terry
There is an additional problem.
When I run leo.bat, it works fine. And I can open any leo file.

@start /b "Leo" "c:\Anaconda\pythonw.exe" "D:\lib\leo\leo-editor\launchLeo.py" %* 

But when I click the *.leo file directly, the iconbox is not there. (I did not remember how I link the *.leo file to leo-editor = =;)

--
--
Sincerely,

HaveF

Matt Wilkie

unread,
Oct 18, 2014, 12:47:30 AM10/18/14
to leo-e...@googlegroups.com

On Fri, Oct 17, 2014 at 9:27 PM, HaveF <iamap...@gmail.com> wrote:
But when I click the *.leo file directly, the iconbox is not there. (I did not remember how I link the *.leo file to leo-editor = =;)

If you mean how to connect double-clicking on a .leo file in Windows Explorer to Leo, it's down with the `assoc` and `ftype` commands. See http://leoeditor.com/installing.html#installing-from-sources-windows, Method 2.

There's also a script in ...\leo\scripts\scripts.leo to do the same from inside a running Leo. (I think it still works, haven't tried it in awhile.)

-matt


Edward K. Ream

unread,
Oct 18, 2014, 7:10:02 AM10/18/14
to leo-editor
On Fri, Oct 17, 2014 at 11:47 PM, Matt Wilkie <map...@gmail.com> wrote:
>
> On Fri, Oct 17, 2014 at 9:27 PM, HaveF <iamap...@gmail.com> wrote:
>>
>> But when I click the *.leo file directly, the iconbox is not there. (I did
>> not remember how I link the *.leo file to leo-editor = =;)
>
>
> If you mean how to connect double-clicking on a .leo file in Windows
> Explorer to Leo, it's [done] with the `assoc` and `ftype` commands. See
> http://leoeditor.com/installing.html#installing-from-sources-windows, Method
> 2.
>
> There's also a script in ...\leo\scripts\scripts.leo to do the same from
> inside a running Leo. (I think it still works, haven't tried it in awhile.)

See also this bug:
https://github.com/leo-editor/leo-editor/issues/24
Windows installer setting wrong file association for .leo files

This bug will be fixed this week, and perhaps earlier if it affects you.

Edward

HaveF

unread,
Oct 19, 2014, 1:08:49 AM10/19/14
to Leo-editor-googlegroup
@Matt
Thanks.

@Edward
Thanks. You are right, I was affected by that bug.
All works now.

Thank you all again!


--
You received this message because you are subscribed to a topic in the Google Groups "leo-editor" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leo-editor/JGNcv2pLjS4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leo-editor+...@googlegroups.com.
To post to this group, send email to leo-e...@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.



--
--
Sincerely,

HaveF
Reply all
Reply to author
Forward
0 new messages