How can I make settings screens in python?
Just like this: http://www.bilder-hochladen.net/files/4xyg-3t.jpg
I'm sorry but this is a symbian class not implemented in PyS60
You need to program yourself an extension in C++ ...
Volume setting and cache widget will be great use for everybody ...
pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !
Find my pys60 extension modules on cyke64.googlepages.com
Otherwise if you just want the seetings, you could have an options menu created with sub menus for the different settings.
Hopefuly helpsOptions->Max Seach Results->5
Last edited by kandyfloss; 2008-04-05 at 21:45. Reason: added
Thanks for the replies!
so, I'm trying to use the form.
Some questions about it:
1- My application body is a text (tx), how can I make the form only appear when I select settings on the menu? and when the right soft key is pressed on the form screen, it would return to the main screen. It's that possible?
2- How to define a function of a option in the form? Ex:
Code:def forming(): ls = [u'Eight', u'Nine', u'Ten'] data = [(u'Aaa','combo', (ls,0))]
How to define a function for Eight, Nine and Ten?
3- In axyz module, when I use axyz.connect(read), it's possible to use more than one argument? Ex:
Forget the axyz thing.
What I really want to know is how can I update a value when certain option is selected in the form
Thanks!Code:def forming(): ls = [u'Eight', u'Nine', u'Ten'] data = [(u'Aaa','combo', (ls,0))] flags = appuifw.FFormDoubleSpaced f = appuifw.Form(data, flags) f.execute() #How can I update a value if Eight, Nine or Ten is selected? #e.g.: i = (20,40) #When Nine is selected the value would be updated: i = (60,80)
say i = (20,40) in beginning
have a flag,
When 9 is selected set the flag as 1flag=0
Then when you implement or use value of i check the flagflag=1
Thus we can say Nine was selected.Code:if (flag==1): i = (60,80) else: #else is optional here, as i is initialized at the start i = (20,40)
I tried this, but it doesn't work. What to do???Code:i = (80,90) def forming(): ls = [u'Eight', u'Nine', u'Ten'] data = [(u'Aaa','combo', (ls,0))] flags = appuifw.FFormDoubleSpaced f = appuifw.Form(data, flags) f.execute() if (ls==1): i = (100,110)
The use of flag gets eliminated here due to using index as a flag.Code:L = [u'Eight', u'Nine', u'Ten'u'Exit'] index = appuifw.selection_list(choices=L , search_field=1) if index == 0: i = (60,80) if index == 1: i = (20,40) if index == 2: i = (100,120) if index == 3: i = (50,90)
No, I didn't try this options... I'm new to Python ... can you give me a example of how I should use this?
Unfortunately, in my case I really have to use the form, the listbox wouldn't be good.
But anyway, thanks for all the replies.
Hope JOM can give me an example of the use of save_hook and the subscription notation!!!
Here's code sample from book: "Mobile Python" by Jürgen Scheible and Ville Tuulos. Recommended, contains an amazing amount of info for such a thin book (300+ pages)! I have bought too many 600+ page book with only tenth of content.