enthought / pyface

pyface: traits-capable windowing framework
Other
105 stars 55 forks source link

`MDataViewWidget` inheriting `HasStrictTraits` causes problems with `super()` #1067

Closed corranwebster closed 2 years ago

corranwebster commented 2 years ago

Since Widget and MWidget inherit from HasTraits, and MDataWidget is first in the MRO, we get HasStrictTraits second, which messes with super() calls to MWidget as HasStrictTraits doesn't have the right methods.

Fixes are either to consistently use HasTraits or HasStrictTraits, but HasStrictTraits is not backwards compatible, so we should drop use of that for now.

corranwebster commented 2 years ago

Fixed by #1066