| Reply | « Previous Thread | Next Thread » |
|
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.
|
|
Please post your code inside a code tag.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |