Argument |
Data type/notes |
self |
the window (background) that is the parent
for the dialog |
title |
quoted string displayed in title bar of dialog |
message |
quoted string displayed inside dialog box as
prompt for user input |
options |
list of values representing contents of dialog
choice list |
result = dialog.singleChoiceDialog(self, "title", "message",
['one', 'two', 'three'])
Name of value |
Description |
accepted |
1 = user clicked OK 0 = user clicked Cancel |
selection |
string containing the list element selected
by the user |