×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    2

    HELP FOR LIST BOX

    HI
    FIRST : excuse me for bad English

    IN this code for list box
    import appuifw, e32


    app_lock = e32.Ao_lock()
    #Define the exit function
    def quit():
    app_lock.signal()
    appuifw.app.exit_key_handler = quit

    #Create a list of items to be displayed (Unicode strings)
    items = [u"Item 1", u"Item 2", u"Item 3"]

    #Create an instance of Listbox and set it as the application's body
    lb = appuifw.Listbox(items, lambda:None)
    appuifw.app.body = lb

    #Wait for the user to request the exit
    app_lock.wait()
    WHEN select Item 1 or Item 2 or Item 3 the lambda Start but i need when i SELECT Item 1 EXAMPLE Star X Item 2 Start xy Item 3 start xyz

    PLEASE HELP ME !!!! TANK U

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Location
    London, UK
    Posts
    176

    Re: HELP FOR LIST BOX

    not sure i totally understand your question, but do you think using appuifw.selection_list would be better?
    It returns the index of the selected item, and upon that u can initiate the desired function.
    The86Hitman
    PyS60 1.9.7 on E71
    http://www.drhtailor.com/pys60

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    2

    Re: HELP FOR LIST BOX

    Quote Originally Posted by the86hitman View Post
    not sure i totally understand your question, but do you think using appuifw.selection_list would be better?
    It returns the index of the selected item, and upon that u can initiate the desired function.
    tak u !!! for answer

Similar Threads

  1. Pinyin mode for Search box
    By dgaur in forum Symbian User Interface
    Replies: 0
    Last Post: 2008-05-06, 09:45
  2. how to updated the list box on dialog box before it is displaying it.
    By manjunaths in forum Symbian User Interface
    Replies: 3
    Last Post: 2008-03-20, 10:37
  3. list box with find box - Series 60
    By white_dragon in forum Symbian
    Replies: 3
    Last Post: 2004-08-16, 09:52

Posting Permissions

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