Export to GitHub

pymt - issue #281

Seperate properties in MTWidget


Posted on Jul 7, 2010 by Happy Camel

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

Status: Accepted

Labels:
Type-Enhancement Priority-Medium