|
From: Kevin A. <al...@se...> - 2001-10-16 21:29:07
|
A post by Thomas Heller on the wxPython-users list http://aspn.activestate.com/ASPN/Mail/Message/wxPython-users/804764 got me thinking about simple text editors today (aka notepad). I really haven't had time to digest all the document/view ideas in Thomas's post, but I did take 45 minutes :-) to do a simple textEditor sample, which I've checked into cvs. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pythoncard/PythonCardPrototyp e/samples/textEditor/ One difference from other samples is that I made the file extension .pyw rather than .py in order to avoid the console window appearing when the sample is launched. Do not use this sample to do any real editing, always work on copies of files you want to edit. There are some comments at the beginning of the file about possible enhancements. I'll be adding dialogs and perhaps exploring document/view architectures with this sample. My mind is totally unfocused right now as I try and juggle turtles, bitmaps, sizers, modal dialogs, and model view controller ideas, so I'll probably wait until tonight or tomorrow before committing any dialog stuff to cvs. I was hoping to get some comments on the dialog posts yesterday before adding the files. ka |