[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pyd names in PyQt4
From: michael h <michaelkenth () gmail ! com>
Date: 2016-06-03 23:30:24
Message-ID: CAD0nt=Ec3DGrt90AZe3exgi9G31MfKAzRU6xtT6HeMVBD10OXA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
>
> import QtNet
> QtNetwork = QtNet
>
> Seemed to work here when I tested it.
>
>
> - m
>
Seems it's not enough...you may also need a:
sys.modules['PyQt4.QtNetwork'] = QtNet
...for the 'import PyQt4.QtNetwork' variety. But you get the idea... alias
it in the PyQt4 __init__ and that should execute before or as anything is
importing pyqt modules
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div \
dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>import QtNet \
</div><div>QtNetwork = QtNet<br></div><div><br></div><div>Seemed to work here when I \
tested it.</div><span class=""><font \
color="#888888"><div><br></div><div><br></div><div>- m \
</div></font></span></div></div></div> </blockquote></div><br></div><div \
class="gmail_extra"><br></div><div class="gmail_extra">Seems it's not \
enough...you may also need a:</div><div class="gmail_extra"><br></div><div \
class="gmail_extra">sys.modules['PyQt4.QtNetwork'] = QtNet<br></div><div \
class="gmail_extra"><br></div><div class="gmail_extra">...for the 'import \
PyQt4.QtNetwork' variety. But you get the idea... alias it in the PyQt4 __init__ \
and that should execute before or as anything is importing pyqt modules</div></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic