[Boa Constr] CVS Updated
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2001-07-09 14:05:15
|
Hi everyone, Another update, major changes: * Better integration between your source and generated source. There are 2 new features, I'm calling them advanced as they require manual maintenance of generated code, but it's actually quite simple. * Special attributes (from doc string): Read special attributes from __init__ method. All instance attributes defined between the top of the __init__ method and the _init_ctrls() method call will be available to the Designer as valid names bound to properties. For an attribute to qualify, it has to have a simple deduceable type (Python builtin or wxPython objects). If for example the attribute is bound to a variable passed in as a parameter, you have to first initialise it to a literal of the same type. This value will be used at design time. e.g. def __init__(self, parent, myFrameCaption): self.frameCaption = 'Design time frame caption' self.frameCaption = myFrameCaption self._init_ctrls(parent) Now you may add this attribute by hand as a parameter or property value in the source. In the Inspector property values recognised as special attributes will display as bold values and cannot be edited (yet). * Custom classes (from doc string): Read definition for Custom Classes Custom Classes can be defined as a class attribute named _custom_classes containing a dictionary defining wxPython classes and their custom equivalents, e.g. class wxFrame1(wxFrame): _custom_classes = {'wxTreeCtrl': ['MyTreeCtrl', 'AdvancedTreeCtrl']} These custom classes will then be available to the Designer and will act as equivalent to the corresponding wxPython class, but will generate source for the custom definition. One implication is that you loose the constructor. Because Boa will generate the creation code for the object the constructor signature has to be the same as the wxPython class. I've added examples of use to Examples/advanced/ The best examples may be in Editor.py, Palette.py and especially Inspector.py. These modules have been refactored to use the new features and now have much greater design time interaction. * CVSROOT selection dialog added * Functions included in documentation view * Added StaticTextCtrl example (User Palette) wxTextCtrl with an attached caption * Lots of bug fixes Problems that I'm aware of: * Accelerator problems on GTK * The Designer can still crash under specific circumstances on 2.3.0 :( As there have been a lot of internal changes again, there may be breakage, please report any. These changes are very cool for me because this is a direction I have wanted to take Boa in for a while now. Enjoy! -- Riaan Booysen ___________________________________________________ Boa Constructor - RAD GUI building IDE for wxPython http://boa-constructor.sourceforge.net |