Project Member
Reported by
txprog,
Jul 7, 2010
Explore ways to be able to seperate properties (as styles) in MTWidget.
The goal would be:
* be able to load/save state of a widgets
* enumerate properties of any widgets
* apply verification on the value
All is required to build an IDE !
For example, we can use __properties__ aka __slots__ work:
class MyWidget(MTWidget):
__properties__ = (
# name, verification, default value(, doc ?)
('orientation', ('horizontal', 'vertical'), 'horizontal'),
('do_x', bool, True),
('do_y', bool, True),
)