My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 281: Seperate properties in MTWidget
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  txprog


 
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),
  )


Powered by Google Project Hosting