0

I'm trying to embed a foreign executable inside of a Python GUI (PyQt) just like this post describes: Run a foreign exe inside a Python GUI (PyQt) but the answer requires the win32gui module, which doesn't seem to be available on linux systems. The PyQt method (http://doc.qt.io/qt-5/qwindow.html):

--> QWindow.fromWinId(id)

does what I need, but I'm not sure how to get the handle id (hwnd) of the window of my executable (for the record, I'm trying to embed saods9 within my GUI) on linux (Ubuntu). Everything I'm finding looks to be geared toward a Windows operating system, not Linux. So I'm thinking that this Qt method can't be used on a Linux operating system?

That would be my question: How do you get the handle id of a native window within Linux to be used in the Qt method QWindow.fromWinId(id)?

2
  • Use one of the many external tools like xwininfo or wmctrl. Commented Aug 16, 2018 at 9:41
  • Thank you ekhumoro! I was able to download and use xwininfo. Commented Aug 16, 2018 at 16:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.