Categories: S60 | Python | How To | UI | Code Examples
This page was last modified 20:18, 14 October 2007.
How to view icons in a mbm file
From Forum Nokia Wiki
Python has an icon type but note that currently appuifw.Icon can only be used with Listbox! So you need this code for viewing icons contained in a mbm file in a Listbox.
from appuifw import * avkon = u'z:\\system\\data\\avkon.mbm' def showicon(id_list, maskfunc=lambda x:x): if type(id_list) == int: id_list = [id_list] # one item entries = [] if type(maskfunc) == dict: # allow dict as a func func = lambda id: maskfunc.get(id,id) else: func = maskfunc for id in id_list: item = u'%s, %s' % (id, func(id)) icon = Icon(avkon, id, func(id)) entries.append((item, u'', icon)) app.body = Listbox(entries, lambda: None) showicon(range(503)) # all icons, including mask showicon(range(0,100,2), lambda x:x+1) # first 50 icons, with their mask brother
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 怎么给CAknSingleGraphicPopupMenuStyleListBox添加icons? | waerxie | Symbian | 2 | 2006-07-25 17:56 |
| How to use standard icon from AknsUtils class..? | sumit_rusia | Symbian User Interface | 3 | 2006-12-27 05:19 |
| putting icon on multipage form tab instead of title text | ashish_jpr | Symbian User Interface | 2 | 2008-08-28 13:29 |
| bmp 2 svg ??? & svgt 2 mbm ??? | gaurav C | General Symbian C++ | 1 | 2008-01-09 10:22 |
| How to add icons to a stand alone Python application ("py2sis" -generated app) | otsov | Python | 4 | 2006-05-25 18:32 |
