[PyQt] Creating a QWinmigrate mofules for PyQt5 using SIP

Andrew Cunningham pyqt at a-cunningham.com
Wed Jun 20 17:58:20 BST 2018


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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180620/9e3b9515/attachment.html>


More information about the PyQt mailing list