Using icons in Listbox
One of them is using icons in Listbox
(code taken from pys60 API reference)
1 2 icon1 = appuifw.Icon(u"z:\\system\\data\\avkon.mbm", 28, 29) 3 icon2 = appuifw.Icon(u"z:\\system\\data\\avkon.mbm ", 40, 41) 4 entries = [(u"Signal", icon1), 5 (u"Battery", icon2)] 6 lb = appuifw.Listbox(entries, lbox_observe)
Listbox is one of the 3 types that can be assigned to app.body
(i.e. Text, Listbox, Canvas)
So, to make code above able to run, you must add
1 appuifw.app.body = lb
and the function lbox_observe that will handle the selection
need to be defined.