-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parent window to host #1
Comments
+1 for parenting to host:) |
+1 as it is really annoying when your tools hide behind the main Maya window (or any other application that you might be using). |
Some thoughts on a potential solution to this. I'm reluctant to try physically parenting the window to another process due to having read scare stories about it on the interwebs. As an alternative, I'm thinking it may be more safe and equally user-friendly to simply introspect the external process, like it's current minimized state, size and position, and mirror this for our GUI. The experience should be identical, but without the pitfalls of physical parenting. ImplementationWe can get the HWND from a host via http://docs.activestate.com/activepython/3.2/pywin32/win32gui.html We'll use this information in the GUI code to "monkey do, monkey say". Another advantage of this approach is that we're safe from hosts crashing and vice versa; our app can't cause a host to crash. We can also choose to "detach" should be want our GUI to remain open during e.g. long running publishes. |
Continuing on from PR to pyblish/pyblish-qml pyblish#181
Implemented in #259 |
Currently, the GUI is launched as a separate window, but we'd like it to appear as though it was a child of to the host.
This may require OS-specific commands.
On Windows, SetParent seems the obvious winner, though it seems to have some warts.
Something like this ought to do it for Maya on Windows.
If a similar feature is available in Linux distributions (Wayland?) then that's where we'll go.
The text was updated successfully, but these errors were encountered: