On Wed, 11 Mar 2009 11:26:28 +0300, Алексей Никитенко
<[email protected]> wrote:
> Hi!
> A use my own tiny framework based on PyProtocols.
> I declare adapters for some PyQt4 objects (QTableWidget, for example)
> and use interfaces in my code.
> It's a little bit exotic, but provides more flexible and readable code.
> New snapshots of PyQt4.5 dropped QObject.__dict__ property, and I cannot
> declare adapter for specific  PyQt object any more.
> Will be nice to fix that.
> If maintaining __dict__ propery is memory expensive, maybe lazy
> initialization will work?

PyQt objects now work exactly the same as regular Python objects (eg.
object), so QObject.__dict__ exists but QObject().__dict__ doesn't.

Can you explain in more detail why you need it?

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to