×

Discussion Board

Results 1 to 2 of 2

Thread: need code help

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    5

    Exclamation need code help

    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"





    this code when run, aint showing the search box in my s60 5th edition device.

    any ideas why ?

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: need code help

    Your code should like below :

    Code:
     
    
     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 = o:
            appuifw.note("cakewalk was selected","info")
     else:
            appuifw.note("thanks for choosing","info")
    Try the above code I have modified.

    Best regards,

Similar Threads

  1. Replies: 2
    Last Post: 2010-06-23, 11:33
  2. [defect report] carbide.cpp code formatter can't produce code conforming to s60 style
    By simo.salminen in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2008-10-27, 10:56
  3. acu error code -104011, state code -6 VPN Policy server
    By leyoo in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 2
    Last Post: 2008-09-05, 07:16
  4. Replies: 3
    Last Post: 2007-01-18, 11:27
  5. Replies: 0
    Last Post: 2003-09-26, 15:07

Posting Permissions

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