List all valid options for a single child #169
Answered
by
jim-easterbrook
stefanmeili
asked this question in
Q&A
-
I'm hoping to find a way to get a list of all valid options for a configuration option. For example, I can list the current setting for iso using: camera = gp.Camera()
config = camera.get_config()
current_iso = config.get_child_by_name('iso').get_value() How can I list all valid options for my camera: Without resorting to parsing |
Beta Was this translation helpful? Give feedback.
Answered by
jim-easterbrook
Feb 12, 2024
Replies: 1 comment 3 replies
-
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
stefanmeili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gp_camera_get_single_config
gets a single config widget,gp_widget_count_choices
tells you how many options the widget has,gp_widget_get_choice
gets each of the options.