enthought / qt_binder

Thinly wrap Qt widgets with Traits
Other
19 stars 5 forks source link

Work around prefix trait issues with trailing underscores #21

Open rkern opened 9 years ago

rkern commented 9 years ago

Traits interprets trait names that have trailing underscores as prefix traits. PySide and PyQt4 expose the QWidget.raise() slot as QWidget.raise_() to avoid the keyword conflict. We would like to name the corresponding trait raise_ as well.

We may need to duplicate the contents of HasTraits.add_class_trait() without the prefix-trait handling in order to accomplish this.