2005/9/8, İsmail Dönmez <<a href="mailto:ismail@uludag.org.tr">ismail@uludag.org.tr</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> You are not "faking" MI, with this. You are actualy doing it.<br>Yeah but its not working as say it does in C++</blockquote><div><br>
The difference of C++ MI and Python MI, is that one is statically
defined, and the other is resolved dynamically. For us (humans) only
what matters is *behaviour*.<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> BTW, in Qt4, QThread is also a QObject.<br>Yeah I noticed too, which is a good thing.
</blockquote><div><br>
You should check python-qt4. But don't wait for threads to work with it. <br>
<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Then I can't use QThread functions like start() which shows this is still not<br>
100% inheritance.</blockquote><div><br>
Why not? I don't know how PyQt classes are implemented, but they should
be as "new style classes". If not I suspect that MI would not work
correctly. Anyway, there are several ways to achieve the expected
behaviour.<br>
<br>
You can do something like:<br>
class Thread(QObject):<br>
def __init__(...)<br>
self.thread = QThread()<br>
...<br>
<br>
def __getattr__(self, attr):<br>
return geattr(self.thread, attr)<br>
</div><br></div>Don't give up so soon.<br>
<br>
[Eric Jardim]<br>