
The following command generated the above dialog.
pytc.getFromList("What will you have for dinner?",("fruits and nuts", "bowl of cereal", "pasta and veggies", "sandwich", "oats and nuts"),0)
Changing the last argument will change the display to a drop-down menu (combo box), as shown below.
pytc.getFromList("What will you have for dinner?",("fruits and nuts", "bowl of cereal", "pasta and veggies", "sandwich", "oats and nuts"),1)

No comments:
Post a Comment