On Oct 26, 4:15 pm, "Edward K. Ream" <[email protected]> wrote:

> 1. Using the so-called Modern User Interface is turning out to be easier than 
> I expected.

Actually, the Modern ui is looking like the key to a much better
installer.

It has taken a *lot* of work to understand the possibilities, but
after 6+ hours of work I see that almost all the old "difficult" code
either goes away entirely or is replaced by much easier code.  This is
the best possible news.

There is still lots of Python code that generates the "variable" part
of the script, but that's pretty solid.  The big problem has always
been that the "fixed" part has been so hard to get correct.

In short, there has been a big collapse in complexity where it
matters, namely in setting up the pages of the "wizard".  And btw, the
wizard looks *great*, much better than before.

As a stopgap, I (slightly) improved the code that finds the Python
executable, but it looks like it will be important to create a custom
wizard page to ask the user to select the proper version of Python.
There is no proper way to *guess* which of several versions of Python
the user  might want to open Leo with.

**Important**: it is essential to realize that the *only* reason that
the installer needs the Python executable is so that it can be
specified in the desktop icon and the start menu shortcut.  Not
finding Python isn't the end of the world, it simply means that icons
don't work as expected.  Of course, it's important to make the
attempt.

Creating custom wizard pages looks easy with the modern ui.  The first
custom page will simply ask where Python is, but if that turns out to
be as easy as I expect it may be time seriously to consider other
pages that will download and install Python or Qt!  However, I won't
delay a1 for the secondary installs.  They can wait until b1 if need
be.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to