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

private attributes can't be bound #24

Open
kociak opened this issue Oct 17, 2023 · 0 comments
Open

private attributes can't be bound #24

kociak opened this issue Oct 17, 2023 · 0 comments

Comments

@kociak
Copy link

kociak commented Oct 17, 2023

private attributes can't be bound. I think this is an issue with name mangling.
This is an issue when you want an UI to reflect the state of a class that can be scripted but you don't want to give full power to the scripter (although name mangling is just a convention and therefore not perfect).
Example. Assume you have a class that reflects some parts of the microscope, some are critical, some not. For example, one property control OAV opening, some other the defocus. The OAV one has to be private (we want to avoid opening the valve improperly from a script), but the defocus can be public - one can control the defocus from the script. However, both property must be appearing on the UI (for example, a disabled check-box for the OAV, and a text field for the defocus)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant