On Wednesday, February 8, 2017 at 6:17:15 AM UTC-6, Edward K. Ream wrote:
Rev 79d78162 contains this mornings work. There are many improvements to
demo.py and the top-level demo script, copied to scripts.leo. As promised,
the overall framework is stable.
Here are the highlights, from the checkin log, which mentions a few more
minor details.
*New Image and Text classes*Just as promised. The Demo class contains very
little widget-related code.
*Improved the Demo class*
- Added the demo.module ivar, bound to the leo.plugins.demo module.
This allows subclasses of Demo to access the various graphics classes
defined in demo.py.
- Added demo.retain(w) and demo.delete_retained_widgets().
This allows more control over when widgets disappear.
As I write this, I see that demo.delete_one_widget would allow complete
control.
- demo.parse_script_string removes blank or comment lines.
This allows users to remove slides simply by commenting out all their
lines.
*Improved the top-level example script*
- There was never a need for wrappers. Now they are gone.
- The MyDemo.setup does all the binding by overriding various base-class
methods.
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.