From: Alex T. <al...@tw...> - 2005-05-05 18:12:17
|
Up till now, everything's been fine and easy on the new resource editor - all self-contained within the resource editor itself. But for the "new naming rules", I'd really like those rules to be maintained and used over multiple incantations of the resource editor - which means I need to store the info about which names/labels/texts are user-specified and which are derived. The obvious place to put this is in a new attribute (actually, 2 new attributes) of a component - which means changing Pythoncard/widget.py I think adding new attributes is "safe" - can't see how it would adversely impact anything - but it means changes outside the editor itself. Additional attributes are simply ignored of the resource file is read in by resource.ResourceFile so the resource files are still good to use with earlier version of Pythoncard or earlier versions of the resourceEditor. Would anyone object to my adding a new attribute or two, for use only (currently, at least) within the resource editor ? How about another attribute, for use with geometry manager(s) / sizers, etc. ? For this, I'd propose a generically named attribute per component - just one string, packed with info as needed - and then it can be used by any geometry schemes that want to use it. -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.5 - Release Date: 04/05/2005 |