- 注册时间
- 2004-10-2
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2006-6-21 19:41:00
|
显示全部楼层
更多UI:
Multi_query, Selection_list, Multi_selectionlist
参见:http://mobilenin.com/pys60/info_popup_menu_selection_list.htm
- from appuifw import multi_query
- data1,data2 = multi_query(u"Type your first name:",u"Type your surname:")
- print data1,date2
复制代码
Selection_list: appuifw.selection_list(choices=list , search_field=1)
- import appuifw
- # define the list of items (put a u in front - items must be written in unicode!)
- L = [u'cakewalk', u'com-port', u'computer', u'bluetooth', u'mobile', u'screen'', u'keys']
- # create the selection list
- index = appuifw.selection_list(choices=L , search_field=1)
- # use the result of the selection to trigger some action (here we just print something)
- if index == 0:
- print "cakewalk was selected"
- else:
- print "thanks for choosing"
-
- #NOTE: search_field=1 displays a search pane at the end of you list
- #search_field=0 no search pane is displayed
复制代码
Multi_selectionlist:
2 different ones:
1. with checkbox: appuifw.multi_selection_list(list , style='checkbox', search_field=1)
2. with checkmark: appuifw.multi_selection_list(L , style='checkmark', search_field=1)
- from appuifw import *
- L = [u'cakewalk', u'com-port', u'computer', u'bluetooth', u'mobile', u'screen', u'camera', u'keys']
- # create the multi-selection list
- index = multi_selection_list(L , style='checkbox', search_field=1)
- # create a new list (Lnew) that inlcudes only the selected items and print the new list (Lnew)
- Lnew = index
- print Lnew
复制代码
|
|