[PyQt] Creating a QWinmigrate mofules for PyQt5 using SIP
Phil Thompson
phil at riverbankcomputing.com
Wed Jun 20 22:11:23 BST 2018
On 20 Jun 2018, at 8:38 pm, Barry <barry at barrys-emacs.org> wrote:
>
> Given hwnd is defined in a windows header file, shouldn’t you include that header file?
>
> Barry
The problem occurs before you get to the compiler.
Phil
> 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
More information about the PyQt
mailing list