For Leo 6.0 on Windows 10 - PyQt 4 or PyQt 5?

104 views
Skip to first unread message

Viktor Ransmayr

unread,
Oct 6, 2019, 10:37:09 AM10/6/19
to leo-editor
Hello Edward, hello Community,

Related to my earlier question on a successful usage of a 'dark theme' in Leo 6 I have a follow-up question:

Is there any reason why in this context, i.e. Windows 10 & Leo 6.0, I should investigate in PyQt 4?

With kind regards,

Viktor

Edward K. Ream

unread,
Oct 6, 2019, 12:18:28 PM10/6/19
to leo-editor
On Sun, Oct 6, 2019 at 9:37 AM Viktor Ransmayr <viktor....@gmail.com> wrote:
Hello Edward, hello Community,

Related to my earlier question on a successful usage of a 'dark theme' in Leo 6 I have a follow-up question:

Is there any reason why in this context, i.e. Windows 10 & Leo 6.0, I should investigate in PyQt 4?

Not to my knowledge.  The various theme files should work with PyQt5.

Edward

Viktor Ransmayr

unread,
Oct 6, 2019, 12:39:54 PM10/6/19
to leo-e...@googlegroups.com
Which other references do you recommend related to 'dark themes' beside the ones that I found so far?

[1] Customizing Leo - Theme files

* https://leoeditor.com/customizing.html#theme-files

[2] Leo FAQ - How can I use a dark theme in Leo?

With kind regards,

Viktor

Edward K. Ream

unread,
Oct 6, 2019, 1:31:33 PM10/6/19
to leo-editor
On Sun, Oct 6, 2019 at 11:39 AM Viktor Ransmayr <viktor....@gmail.com> wrote:



Which other references do you recommend related to 'dark themes' beside the ones that I found so far?

I would look at actual theme files. There are known problems with class selectors. See if any are interfering with your style sheets.

Edward

Viktor Ransmayr

unread,
Oct 7, 2019, 3:21:41 PM10/7/19
to leo-editor
Hello Edward,
Thanks for your advice. - I'll give it a try & report back once I've made real progress.

With kind regards,

Viktor

Viktor Ransmayr

unread,
Oct 9, 2019, 3:57:26 PM10/9/19
to leo-editor
Hello Edward, hello Community,
I'm working my way slowly bottom up, i.e. I started with an empty myLeoSettings as well as w/o any explicit style sheets.

I'm making slow progress & learn a lot - but - I don't have yet anything important to ask or report yet.

With kind regards,

Viktor

Félix

unread,
Oct 11, 2019, 7:10:59 PM10/11/19
to leo-e...@googlegroups.com
I am currently trying to install leo on windows...   (I wish the documentation would be a lot more detailled and precise for this)

After installing python3 with the official installer, It took me a lot of googling to figure out that I needed to put python3's path and its Scripts folder path in windows 'PATH' env. variable manualy in order to be able to run "pip3 install PyQt5".  

the fact that Qt5 is not easily installable via a simple .exe download is 'scary' for (non-python) people like me :)

Also, I want to run leo headless: so I wonder if theres a way to set the 'leo id' without qt. (on first run leo asks for an id )
--
Félix

Matt Wilkie

unread,
Oct 12, 2019, 12:34:07 PM10/12/19
to leo-editor
I am currently trying to install leo on windows...   (I wish the documentation would be a lot more detailled and precise for this)

Yeah, I hear you.

After installing python3 with the official installer, It took me a lot of googling to figure out that I needed to put python3's path and its Scripts folder path in windows 'PATH' env. variable manualy in order to be able to run "pip3 install PyQt5". 

Hmm. I haven't tried the official installer in awhile; it used to do that automatically. Thanks for the heads up.
 
the fact that Qt5 is not easily installable via a simple .exe download is 'scary' for (non-python) people like me :)

Agreed! I've spent a lot of time trying figuring out how to smooth that part of the process. Not that it's any consolation to you now, but it used to be even more difficult (you couldn't use pip). ;-)

Also, I want to run leo headless: so I wonder if theres a way to set the 'leo id' without qt. (on first run leo asks for an id )

 Try running `leo-console` (or `python launchLeo.py --gui=console`).  [Later]: doesn't work. Loads npyscreen and then exits. This is probably a bug.

-matt

Matt Wilkie

unread,
Oct 12, 2019, 12:50:33 PM10/12/19
to leo-e...@googlegroups.com
Also, I want to run leo headless: so I wonder if theres a way to set the 'leo id' without qt. (on first run leo asks for an id )

 Try running `leo-console` (or `python launchLeo.py --gui=console`).  [Later]: doesn't work. Loads npyscreen and then exits. This is probably a bug.
 

Work around:

set HOME=%USERPROFILE%
mkdir
%HOME%\.leo
echo
"My ID" > %HOME%\.leo\.leoID.txt
leo
-console

Note: skip the `set HOME` line if you already have it defined.

-matt

[edit after initial post]: fix HOME references

Edward K. Ream

unread,
Oct 14, 2019, 3:10:04 AM10/14/19
to leo-editor
On Fri, Oct 11, 2019 at 6:11 PM Félix <felix...@gmail.com> wrote:


> Also, I want to run leo headless: so I wonder if theres a way to set the 'leo id' without qt. (on first run leo asks for an id ).

There is now.  The fix for #1385 raises a Tk dialog asking for the id.

Edward

Matt Wilkie

unread,
Oct 17, 2019, 2:06:00 AM10/17/19
to leo-editor
Work around:

set HOME=%USERPROFILE%
mkdir
%HOME%\.leo
echo
"My ID" > %HOME%\.leo\.leoID.txt
leo
-console

Note: skip the `set HOME` line if you already have it defined.

DON'T quote My ID or you'll break your .leo files. See https://github.com/leo-editor/leo-editor/issues/1402

NO:  echo "My ID" > %HOME%\.leo\.leoID.txt
YES: echo My-ID > %HOME%\.leo\.leoID.txt

and probably wise to stick with printable ascii characters too.

-matt
Reply all
Reply to author
Forward
0 new messages