You Are Here:

Community: Developer Discussion Boards

#1 Old Combo Box - 2006-11-20, 07:10

Join Date: Sep 2006
Posts: 24
cashgoh
Offline
Registered User
hi everyone, i have problem in getting data from combo box! it give mi all the whole value instead of showing mi the data that i selected!

this is my codes:

def config_c():

CONFIG_DIR='C://Data'
CONFIG_FILE=os.path.join(CONFIG_DIR,'settings.txt')
if not os.path.isdir(CONFIG_DIR):
os.makedirs(CONFIG_DIR)
CONFIG_FILE=os.path.join(CONFIG_DIR,'settings.txt')
value1 = '01'
value2 = ([u'Yes', u'No'], 1)
value3 = '192.168.1.1'
value4 = 'C:\Nokia\Images\Pictures'
value5 = ([u'Yes', u'No'], 1)
value6 = ([u'320x240', u'640x480', u'800x600'], 1)
value7 = '35446800-1240-12-7-09'
value8 = ([u'this_dir,', u'C:\\System\\Apps\\Python\\my\\+'], 0)

config={}
config['Location']= value1
config['Mock Location']= value2
config['Server IP']= value3
config['Image']= value4
config['Feedback']= value5
config['Picture Size']= value6
config['UserID']= value7
config['DIR Config']= value8
f=open(CONFIG_FILE,'wt')
f.write(repr(config))
f.close()
config_c()
CONFIG_FILE='c:\\Data\\settings.txt'
r=open(CONFIG_FILE,'rt')
try:
content = r.read()
config=eval(content)
r.close()
value8=config.get('DIR Config','')
print value8
except:
print 'can not read file'
Last edited by cashgoh : 2006-11-21 at 02:55.
Reply With Quote

#2 Old Re: Combo Box - 2006-11-21, 17:23

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
Please post your code inside a code tag.
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
Creating & Displaying Combo Box vglaiju Symbian User Interface 2 2005-08-02 15:18
Combo Box Alicia_S60 Symbian User Interface 1 2004-11-19 05:02
list box with find box - Series 60 white_dragon General Symbian C++ 3 2004-08-16 10:52
Nokia 9200 SDK...Creating a Column List Box and Horizontal Icon and Text List Box sayvr Symbian Tools & SDKs 1 2004-03-01 09:37
A question of Combo box on nokia9210 hellmester Symbian User Interface 0 2002-11-13 08:29

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