On Saturday, August 10, 2019 at 11:12:45 AM UTC-5, Edward K. Ream wrote: > During development, having a separate plugin for each pyzo dock...will be the simplest way. Imo, incremental development is a must.
Rev 75d917 in the pyzo branch adds icons to the pyzo_file_browser plugin, completely vindicating an incremental approach: 1. All new work was started in the plugin. This makes it dead easy to see what is, and isn't, needed. In particular, the new PyzoIcons class is a drastic simplification of the Dict class in zon.py. Startup code is completely straightforward. 2. After completing the plugin, I copied the new icons code from the plugin to leo/external/pyzo/pyzo_icons.py. All future *pyzo/leo hybrid docks* will be able to use pyzo_icons.py during startup without ever importing pyzo. This is an important pattern! *No *code was moved out of the leo/external/pyzo directory tree. pyzo_icons.py contains *copies *of the plugin code. Eventually, perhaps, we could eliminate the duplication, but I'm not even going to think about doing that now. The next step will be to fully connect the file browser dock to Leo. I'll follow much the same plan. 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/d6988879-f3c9-42ef-a50f-5ec33a2b8af7%40googlegroups.com.
