enthought/enaml — comment on commit c3f8048e158983a9648df51d25ae93eca1ae4a38
File:  line 0
By rkern:

Re mixin first: I get segfaults when I do that. I don't think Shiboken deals with multiple inheritance and signals well.

Re factory functions: Given the need for the super() call to refer to the class, the resizeEvent method will need to be defined inside of the factory function and use lexical scoping to get the class. Unfortunately, that means that the factory function's frame will need to be kept alive. I'd rather not if we can avoid it. The amount of duplicated code is small, and we keep it contained to this module.