When adding a drop-down (combo box) component, you can include multiple items by providing a pipe-separated string.
For example:
These items will appear in the drop-down list in the order they are given.
planetcnc.dlg_add_dropbox(handle, name, values, value=0, param=None)
#! /usr/bin/env python import planetcnc dlg_handle = planetcnc.dlg_new("Examples") # Add a drop-down component with four items: "Koko", "Pipi", "Bula", "Miki" planetcnc.dlg_add_dropbox(dlg_handle, "Dropbox", "Koko;1|Pipi;2|Bula;3|Miki;4", 1) planetcnc.dlg_show(dlg_handle)
In this example, the drop-down box will contain: