You Are Here:

Community: Developer Discussion Boards

#1 Old Listbox start index - 2008-04-01, 09:25

Join Date: Feb 2005
Posts: 9
rshd1234
Offline
Registered User
hello,
how to set the start index for the Listbox ,

e.g:

import appuifw
import e32
def exit_key_handler():
app_lock.signal()

def shout():
index = lb.current()
print index
print entries[index]

entries = [u"1",u"2",u"3"]
lb = appuifw.Listbox(entries,shout)

app_lock = e32.Ao_lock()
appuifw.app.body = lb
appuifw.app.exit_key_handler = exit_key_handler
app_lock.wait()


how to set no 2 as the starting index ?

thanks
Reply With Quote

#2 Old Re: Listbox start index - 2008-04-01, 11:57

Join Date: Feb 2005
Posts: 9
rshd1234
Offline
Registered User
i find the solution

http://discussion.forum.nokia.com/fo...hlight=listbox


lb.set_list(entries,1)
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
Findbox with graphic listbox problem (wrong filtering) yavolinsky Symbian User Interface 2 2009-02-03 03:32
listbox problem sriramadasu General Symbian C++ 9 2006-10-27 16:27
Compile problem on Create dynamically a listbox aferrario General Symbian C++ 1 2006-07-19 05:45
List index with FindBox microteq Symbian User Interface 4 2005-05-08 23:53
Real item index in a filtered listbox tomutal Symbian User Interface 2 2003-09-03 09:34

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