[wxpython-users] Simple wxPython editors with unlimited undo/redo?

AK andrei.avk at gmail.com
Sun Apr 13 12:48:59 PDT 2008


Hi, I'm still thinking about the best way to add undo functionality to a 
textctrl in Linux. After some searching it seems that it's just not 
available in Linux. I saw some references in the code that textctrl's 
Undo method does one level of undo by default, but doing undo again 
removes that first undo (i.e. does the redo, instead of undoing another 
level of undo). Is there some way to turn on more levels of undo in 
stock textctrl?

Basically, I'm hoping to find a wxpython simple texteditor where I'd be 
able to easily pluck out the unlimited undo/redo. Failing that, I'd like 
to find an article that goes over what's involved in making one. I found 
this:

http://arts.cuhk.edu.hk/humftp/Philosophy/Papers/undo.txt

Which is nice but it expressly notes that there is no Redo logic there.

I don't mind doing this on my own but I'm afraid I'll do it in an 
inefficient or buggy way, especially since I'll do it in python (which I 
think maybe will make it slower than possible C implementation, if I 
don't use the most efficient algorithms).

thx!


More information about the wxpython-users mailing list