064-contacts.py

来自「this code is used for edit on os of s60」· Python 代码 · 共 19 行

PY
19
字号
import contacts, appuifw, telephonename = appuifw.query(u'Call to', 'text')db = contacts.open()entries = db.find(name)names = []for item in entries:        names.append(item.title)if names:    index = appuifw.selection_list(names, search_field=0)    num = entries[index].find('mobile_number')    if num:        telephone.dial(num[0].value)    else:        appuifw.note(u'Missing mobile phone number', 'error')else:    appuifw.note(u'No matches','error')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?