You Are Here:

Community: Developer Discussion Boards

#1 Old Return from the second screen to main screen - 2007-09-12, 14:59

Join Date: Sep 2007
Posts: 27
Location: Palermo,Italy
Send a message via MSN to akus
akus
Offline
Registered User
In my application in Main script i choice the name in selection_list and later load the module Second where there are the numbers in selection_list.
My problem is that i am in the second (where i must choice the number) and i press right key for come back in main screen the script make a error

my scripts are here:

Main.py
Code:
import appuifw,e32
import Second


def Continue():
  Second.Sec()
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"]
choice=appuifw.selection_list(name,search_field=1)
print name[choice]
Second.Sec()
# others istructions...


Lock.wait()
Second.py
Code:
import appuifw,e32


def Sec():
  numbers=[u"52735",u"63739",u"37382",u"62531"]
  choice=appuifw.selection_list(numbers,search_field=1)
  print numbers[choice]
Excuse me for my bad english
Reply With Quote

#2 Old Re: Return from the second screen to main screen - 2007-09-14, 10:19

Join Date: Apr 2007
Posts: 81
Location: Lublin, Poland
janekw_'s Avatar
janekw_
Offline
Regular Contributor
When you press right key while in second screen your 'choice' variable is set to None, so it's you can't use it for indexing in 'print name[choice]'
You have all the info in the stack, really.


whatever happens happens
Reply With Quote

#3 Old Re: Return from the second screen to main screen - 2007-09-14, 10:41

Join Date: Sep 2007
Posts: 27
Location: Palermo,Italy
Send a message via MSN to akus
akus
Offline
Registered User
Thanks for your reply janekw_ so if i set the condition that choice=None i pass my problem
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
CustomItem overlaps TextField asashour Mobile Java General 2 2007-03-27 12:35
Displaying on the main screen vvraju General Symbian C++ 2 2006-04-14 18:32
UI: Full Screen Mode GENERAL_INFO Symbian User Interface 3 2004-11-22 07:27
Return to the Application (grid/list) view screen marcalcock Symbian User Interface 5 2004-04-07 16:58
how to see my app in nokia 7650 main screen zikman9 General Symbian C++ 1 2003-06-19 06:02

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ