You Are Here:

Community: Developer Discussion Boards

#1 Old remember selected index in appuifw.selection_list - 2009-01-29, 00:05

Join Date: Dec 2007
Posts: 24
ali3635
Offline
Registered User
in below code for example when in first time select Jack in SECOND time jack selected by default

import appuifw,e32

def Exit():
Lock.signal()
Lock=e32.Ao_lock()
appuifw.app.title=u"First Application"
appuifw.app.exit_key_handler=Exit



name=[u"Victor",u"Jack",u"Luke"]
while 1:
choice=appuifw.selection_list(choices=name,search_field=1)
choices=choice
if choice <0 :
break
print name[choice]


Lock.wait()
Reply With Quote

#2 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 00:11

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by ali3635 View Post
in below code for example when in first time select Jack in SECOND time jack selected by default

import appuifw,e32

def Exit():
Lock.signal()
Lock=e32.Ao_lock()
appuifw.app.title=u"First Application"
appuifw.app.exit_key_handler=Exit



name=[u"Victor",u"Jack",u"Luke"]
while 1:
choice=appuifw.selection_list(choices=name,search_field=1)
choices=choice
if choice <0 :
break
print name[choice]


Lock.wait()
Sorry, couldn't understand your question at all

Please explain exactly what you want to do and when posting any code, please use the code tag by pressing the # symbol on the post editor



BR,

Rafael.
Reply With Quote

#3 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 01:19

Join Date: Nov 2007
Posts: 319
Location: Sertaozinho/Brazil
Send a message via MSN to marcelobarrosalmeida Send a message via Skype™ to marcelobarrosalmeida
marcelobarrosalmeida's Avatar
marcelobarrosalmeida
Offline
Forum Nokia Champion
Rafael,

I think he wants to show a selection list but with some default item already selected. As far as I know, this is not possible yet with pys60.

Marcelo


Marcelo Barros
Nokia E71, N800, N95 and XM 5800
http://www.croozeus.com
http://wordmobi.wordpress.com
http://jedizone.wordpress.com
Reply With Quote

#4 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 03:45

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by marcelobarrosalmeida View Post
Rafael,

I think he wants to show a selection list but with some default item already selected. As far as I know, this is not possible yet with pys60.

Marcelo
Well, if that is the question, Marcelo is right: it's not possible using Python
Reply With Quote

#5 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 04:57

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Don't say that its not possible in Python. Say its not yet possible in Python
Reply With Quote

#6 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 11:00

Join Date: Dec 2007
Posts: 24
ali3635
Offline
Registered User
yes i mean that thanks for answering so i have to use list
Reply With Quote

#7 Old Re: remember selected index in appuifw.selection_list - 2009-01-29, 11:02

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Btw, Please try to use the code tags, next time you post code.

The code tags mantain indentations.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get selected ListBox index from view1 to view2? jennie Symbian User Interface 9 2007-09-19 15:56
How to achieve CAknEnumeratedTextPopupSettingItem selected item index? winstonma General Symbian C++ 4 2006-12-01 13:07
How to get the selected index of CAknSettingItemList? eternalbeyond General Symbian C++ 1 2006-08-28 15:36
ScrollPane, PP on Nokia 9500 Emu pkc2k Personal Profile 1 2005-12-06 17:58
How to get selected index of Item in a Form ? akokchai Mobile Java General 1 2004-02-23 02:40

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia