From: Kevin A. <al...@se...> - 2001-11-28 01:40:11
|
Now that the TextArea widget uses the RichEdit control and can work with files larger than 32K I decided to upgrade the textEditor sample. The version in cvs has: New and Save menu items a documentChanged flag a filename argument is accepted on the command-line I reworked all the file operations so the user has a chance to save changes. The logic can be confusing sometimes, but I think it is working pretty much like the Windows Notepad application as far as the new/open/save/save as/exit logic is concerned. I will add a Replace dialog once we are using wxPython 2.3.2. I also need to work out how I'm going to do whole word matches in the text. I don't think there is an option just using a plain Python string operation, so I probably have to resort to using a regular expression. Perhaps some text wizard like Neil will enlighten me. :) Remember to only work on backup copies of files in case there are bugs. However, I do appreciate any feedback I can get. The next step is to cleanup and refactor the code so there is a real document model and then see how it can be abstracted for other apps and what similarities it has to the addresses sample. ka |