[wxPython-users] ANN: peppy-0.5.1,
editor and software development process experiment
Josiah Carlson
jcarlson at uci.edu
Mon Feb 12 17:10:24 PST 2007
"Rob McMullen" <rob.mcmullen at gmail.com> wrote:
[snip]
> I've used the Trac component architecture for plugins. I also used
> the adapter pattern to wrap several plugins from Josiah Carlson's PyPE
> editor (without changing any of the borrowed code) so I can leverage
> his GPL'd work. That'll be one of my goals going forward -- try to
> use existing code from other GPL editors as much as possible.
My goodness. I could have sworn that I wrote everything so horribly
that it was not only impossible for 3rd parties to modify, but that it
being GPLed was really only useful as an example of "what not to do".
Congratulations on managing to find a use for some of it. :D
I also congratulate you on managing to get multi-window editing working.
Since you (or someone else?) posted about it, I've been thinking about
how one could make it possible, specifically how I could make such a
thing work in PyPE. I have some ideas, but they probably won't happen
for quite a while (perhaps PyPE 3 or 4), if at all.
One of the things that has slowed me down (and what slowed me down when
initially working on PyPE 2.0 a couple years back) is saving and
restoring the edit control state when moving documents between editors.
PyPE handles most everything with regards to state saving and restoring
for a document (except for styling and lexers), specifically
PythonSTC.GetSaveState and SetSaveState . You may want to ignore
folding, as for large documents, getting and setting folding state can
be slow (and incorrect, PyPE doesn't do it quite right).
Good luck!
- Josiah
More information about the wxpython-users
mailing list