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

Device properties window #10

Open
Kubiczek36 opened this issue Jun 17, 2024 · 2 comments
Open

Device properties window #10

Kubiczek36 opened this issue Jun 17, 2024 · 2 comments
Labels
python python specific issue question Request for information/clarifications.

Comments

@Kubiczek36
Copy link

Hello,

I would like to use the grabber_device_properties method, however I don't know, what should be provided with the parent (I assume it's not just any int) Please, could you provide a simple Python example for this method.

Thank you in advance!

@TIS-Tim
Copy link
Contributor

TIS-Tim commented Jun 17, 2024

Hello,

the function expects a numeric value for the HWND of the parent window.

Not sure which toolkit you use, but this example is calling one of the dialog functions and extracts the window handle from a Qt window:

if not ic4.Dialogs.grabber_select_device(self.grabber, _window_handle(self)):

@TIS-Edgar TIS-Edgar added question Request for information/clarifications. python python specific issue labels Jul 30, 2024
@TIS-Tim
Copy link
Contributor

TIS-Tim commented Oct 14, 2024

With ic4 release 1.2, there are pre-built propery dialogs for use with PySide6:

https://www.theimagingsource.com/en-us/documentation/ic4python/api-reference.html#pyside6-integration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python python specific issue question Request for information/clarifications.
Projects
None yet
Development

No branches or pull requests

3 participants