[PyQt] Creating a QWinmigrate mofules for PyQt5 using SIP

Barry barry at barrys-emacs.org
Wed Jun 20 20:38:01 BST 2018


Given hwnd is defined in a windows header file, shouldn’t you include that header file?

Barry


> On 20 Jun 2018, at 17:58, Andrew Cunningham <pyqt at a-cunningham.com> wrote:
> 
> I eventually solved the issue by just replacing HWND with long
> 
>> On Tue, Jun 19, 2018 at 2:31 PM, Andrew Cunningham <pyqt at a-cunningham.com> wrote:
>> Tried that, no luck either.
>> 
>>> On Mon, Jun 18, 2018 at 10:05 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
>>> On 18 Jun 2018, at 5:18 pm, Andrew Cunningham <pyqt at a-cunningham.com> wrote:
>>> > 
>>> > Hi Phil,
>>> > I tried that , 
>>> > py> QtCore.PYQT_CONFIGURATION
>>> > {'sip_flags': '-t WS_WIN -t Qt_5_7_0'}
>>> > 
>>> > And in configure.py 
>>> > 
>>> > sip_cmd = " ".join([
>>> >     config.sip_bin,"-c", ".", "-b", build_file,
>>> >     "-t", "WS_WIN", "-t", "Qt_5_7_0",
>>> >     basename + ".sip"
>>> > ])
>>> > 
>>> > I still get 
>>> > sip: HWND is undefined
>>> > 
>>> > My .sip files looks like this, should I be adding something else?
>>> > 
>>> > %Module QtWinMigrate 0
>>> > 
>>> > %Platforms {WS_WIN}
>>> 
>>> Remove the above line, although I'm not sure if it will make a difference.
>>> 
>>> Phil
>> 
> 
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180620/e126fe12/attachment.html>


More information about the PyQt mailing list