) |
) |
label, type[, initial_value]) |
'text'
'code'
'number'
'date'
'time'
'query'
'float'
The type of the optional initial_value parameter and the returned input depend on the value of type:
'text'
, 'code'
) it is Unicode
A simple confirmation query and time query take no initial value and return
True/None
and seconds since local midnight, correspondingly. All
queries return None
if the users cancel the dialog.
For 'float'
query the initial_value setting has no
effect.
label_1, label_2) |
None
if the users cancel the dialog.
text[, type[, global]]) |
'info'
, which is
automatically used if type is not set. type can be one of
the following strings: 'error'
, 'info'
or
'conf'
.
If global (integer) is any other value than zero a global note is displayed. A global note is displayed even if the Python application calling this function is in background. The same set of types is supported as in standard note.
list[, label]) |
None
if the user cancels the
operation.
choices[, search_field=0]) |
None
if the
selection is cancelled by the users. choices is a list of
Unicode strings.
search_field is 0
(disabled) by default and is optional. Setting it to 1
enables a search field (find pane) that facilitates searching for items in long lists. If enabled, the search field appears after you press a letter key.
choices[, style='checkbox', search_field=0]) |
'checkbox'
.
If 'checkbox'
is given, the list will be a checkbox list,
where empty checkboxes indicate what items can be marked. The other
possible value that can be set for style is
'checkmark'
. If 'checkmark'
is given, the list will be
a markable list, which lists items but does not indicate
specifically that items can be selected. To select items on a
markable list, use the 'Options' that has
Mark/Unmark or the Edit key to select an item and the
Navigation key to browse the list. For example views on checkbox and
markable lists, see
Figure 3.4.
search_field is 0
(disabled) by default and is
optional. Setting it to 1
enables a search field (find pane)
that facilitates searching for items in long lists. If enabled, the
search field is always visible with checkbox lists; with markable
lists it appears by pressing a letter key.
Example:
tuple = appuifw.multi_selection_list([u'Harry', u'Ron', u'Hermione', u'Voldemort'], style='checkmark', search_field=1)
See About this document... for information on suggesting changes.