Example 26. File 07.02-list_actions
#! /bin/bash export MAIN_DIALOG=' <vbox> <list> <variable>LIST</variable> <item>First item</item> <item>Second item</item> <item>Third item</item> <action>echo Chosen item is $LIST</action> </list> <hbox> <button ok></button> <button cancel></button> </hbox> </vbox> ' gtkdialog --program=MAIN_DIALOG