×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2007
    Location
    Palermo,Italy
    Posts
    27

    Return from the second screen to main screen

    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

  2. #2
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: Return from the second screen to main screen

    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

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Palermo,Italy
    Posts
    27

    Re: Return from the second screen to main screen

    Thanks for your reply janekw_ so if i set the condition that choice=None i pass my problem

Similar Threads

  1. CustomItem overlaps TextField
    By asashour in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-27, 11:35
  2. Displaying on the main screen
    By vvraju in forum Symbian
    Replies: 2
    Last Post: 2006-04-14, 17:32
  3. UI: Full Screen Mode
    By GENERAL_INFO in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-11-22, 06:27
  4. Return to the Application (grid/list) view screen
    By marcalcock in forum Symbian User Interface
    Replies: 5
    Last Post: 2004-04-07, 15:58
  5. how to see my app in nokia 7650 main screen
    By zikman9 in forum Symbian
    Replies: 1
    Last Post: 2003-06-19, 05:02

Posting Permissions

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