An instance of this UI control type is visible as a listbox, also known as a list in Symbian, that can be configured to be a single-line item or a double-item listbox. Figure 3.6 shows a single-line item Listbox with icons. For more information on the MBM and MIF formats, see Section 3.1.8.
| list, callback) |
list defines the content of the listbox and can be one of the
following:
[unicode_string item1, unicode_string item2]
[(unicode_string item1, unicode_string item1description), (unicode_string item2, unicode_string item2description)]
[(unicode_string item1, icon1), (unicode_string item2, icon2)].
[(unicode_string item1, unicode_string item1description, icon1), (unicode_string item2, unicode_string item2description, icon2)]
Example: To produce a normal (single-line item) listbox with graphics:
icon1 = appuifw.Icon(u"z:\\resource\\apps\\avkon2.mbm", 28, 29)
icon2 = appuifw.Icon(u"z:\\resource\\apps\\avkon2.mbm", 40, 41)
entries = [(u"Signal", icon1),
(u"Battery", icon2)]
lb = appuifw.Listbox(entries, lbox_observe)
Instances of Listbox type have the following methods and properties:
| event_code, callback) |
bind(event_code, None) clears an
existing binding. In the current implementation the event is always passed
also to the underlying native UI control.
| ) |
| list[, current]) |
See About this document... for information on suggesting changes.