making undo in python
first of all .. sorry if my english was bad. its my 3rd language im working on a paint software that draw over images and save them again ( for commenting propose ) i use pile and wxpython. but im still having problems with some features .. what is the ideal way to make the undo option ? another question .. when the user scale the picture ( by enlarging the drawing frame) the lines doesn't scale . how do i make that happen . i got rid of all those problems by saving temporary images to the hard disk whenever the user finishes a line and assign that new picture ( the old one with a line on it)