Hello there,

so there is this commercial application that allows me to use Python as a scripting language and PyQt/PySide to create GUIs for my tools. Sadly there is currently no proper way to parent these GUIs to the main application (thus lacking in usability a lot), since it is using MFC internally. There is a plugin created by 3rd party company that solved this problem by creating python bindings for the QtWinMigrate library, but unfortunately they only distribute the .pyd file and I have not yet been able to contact them since all email addresses are gone.

I would like to create a QtWinMigrate.pyd on my own, linked against Qt 4.8.5 x64 and Python 2.7.3 x64. Fortunately, someone has already shared part of the work in form of SIP files.

My question now is, how would I start and go about this problem?

The SIP files reference QtGui/QWidget.sip, so I guess they need to be integrated into the sources of PyQt and build from there. I also guess I need to put the qtwinmigrate code somewhere to make it work. Afaik understand I also need to make sure that the MFC libraries are somehow involved. I have a copy of Visual Studio 2012 Professional where they are included to do all this stuff.

As you can probably read between the lines, I am more of a Python guy stumbling into the C++ compilation world, but curious to learn how things work.
Any tips would be greatly appreciated!

Thanks