From: Kevin A. <al...@se...> - 2001-12-25 02:23:35
|
As a holiday present to myself I finished up the biggest missing feature of the resourceEditor by adding a Menu Editor dialog. There are almost certainly bugs since I just checked it in, but I'm hoping that we can now edit a resource file from scratch or edit any existing sample resource file. I am not supporting dialog editing yet, but users should no longer need to edit a main resource file using a text editor. I've attached a JPEG image of the Menu Editor dialog. The Shortcut field is pretty cool, but perhaps non-obvious. When the cursor is in the field, simply hold down the key combination you want and it will be translated into the correct text for the key combination. For example, hold down the Control key and the f key and 'Ctrl+F' will be inserted into the field. Not all possible key combos are supported right now, but it does the most common ones including the function keys. Use the backspace key to clear the field. *** There is no Undo support in the resourceEditor *** So, if you make a major mistake while editing in a dialog, click Cancel so the changes aren't saved. Use the Attributes menu item under View to look over what will be saved to disk before doing a Save As... and keep backups of your resource files between edits. The resourceEditor is still pretty fragile, aka GIGO. For example, if you don't have a Menu as the first item in the list and click OK, then the dialog will fail to build the Resource in a try/except block and you'll end up with no menubar. I would appreciate feedback and bug reports from those of you braving cvs during the holidays. I plan to try opening, editing, and then saving every .rsrc.py file in the current samples and comparing the output to the originals, but that will take a couple of days, especially since I'm not smart enough to automate the comparisons or use unit tests like a good programmer. I plan to make a 0.6 release before the end of the year, but I want to do some more testing and hopefully get some feedback on the changes since the 0.5.3 release before I make another zip from cvs. ka |