Add-On Documentation Logo

How-to Guides

  • Environments for python scripts
  • GOM Inspect Python API introduction
  • Using script dialogs
  • Creating wizard dialogs
  • Using script resources
  • Scripted elements
  • Adding workspaces to add-ons
  • Using Visual Studio Code as an add-on editor
  • Localization of packages
  • Testing add-ons

Python API Examples

  • Overview
  • data_interfaces
  • dialog_widgets
    • dropdown_widget_dynamic
    • explorer_selected_elements_in_dialog
    • unit_dialog_event_handler
    • widget_visibility
  • misc
  • script_icons
  • script_resources
  • scripted_actuals
  • scripted_checks

Python API Specification

  • GOM Inspect Python API documentation
  • Scripted elements API
  • gom.Resource API
Add-On Documentation
  • dialog_widgets
  • dropdown_widget_dynamic
  • View page source

dropdown_widget_dynamic

Short description

This basic example shows how to use the dropdown widget and how define items at script runtime.

Highlights

Suppose you have created a script dialog that contains a Selection -> Selection element widget with a widget name list.

Then, you can define the items of this dropdown menu by script:

DIALOG.list.items = ['yes', 'we', 'can']

Related

  • How-to: Using Script Dialogs

Previous Next

© Copyright 2023, Carl Zeiss GOM Metrology GmbH.

Built with Sphinx using a theme provided by Read the Docs.

Imprint