If you are using PySide, then the PySide QWidget has a method winId() which returns a wId handle to the underlying window system window handle (like an HWnd in native Windows code).
On the C++ side, the static method QWidget::find() takes a wId as argument and returns a QWidget pointer. So this could be the solution for you.
Bookmarks