Skip to content
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

Provide access to window/widget winId via GafferUI api #314

Closed
bentoogood opened this issue May 23, 2013 · 1 comment
Closed

Provide access to window/widget winId via GafferUI api #314

bentoogood opened this issue May 23, 2013 · 1 comment
Assignees
Labels
docs New user documentation should be created or existing documentation needs to be updated

Comments

@bentoogood
Copy link
Contributor

To help with #143

@ghost ghost assigned johnhaddon May 23, 2013
@johnhaddon
Copy link
Member

I don't think we should add any public methods for retrieving this - the GafferUI API is designed to shield the user from the implementation details, including Qt and system level stuff like this. This allows us to change the implementation in the future (GafferUI started life using GTK).

If you really want to do things via a winId(), and you're happy for your code to be Qt specific, you should be able to do what you want already using myGafferWidget._qtWidget().winId().

Alternatively I'm happy to add an API in GafferUI which takes a GafferUI.Widget and returns an IECore.ImagePrimitive screen capture of it - that wouldn't expose any implementation details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs New user documentation should be created or existing documentation needs to be updated
Projects
None yet
Development

No branches or pull requests

2 participants