How can I make settings screens in python?
Just like this: http://www.bilder-hochladen.net/files/4xyg-3t.jpg
Thanks!!!
How can I make settings screens in python?
Just like this: http://www.bilder-hochladen.net/files/4xyg-3t.jpg
Thanks!!!
Hello Rafael
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 ...
BR
Cyke64
pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !
Find my pys60 extension modules on cyke64.googlepages.com
The screen will not be like as you have shown in the attachment as its not possible in pys60 with current UI extensions. If you want to implement such UI, you will have to work out on your own extensions as Cyke64 mentioned.
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 20:45. Reason: added
Kandyfloss
V 7.0642.0
18-10-06
RH-51
Nokia 7610
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:
Code:axyz.connect(read,read2,read3)
Thanks!![]()
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
e.g.:
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)
Didn't setting and resetting flags work for you?
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)
Hopefully helps,
Kandyfloss
V 7.0642.0
18-10-06
RH-51
Nokia 7610
So, it should be like this?
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)
Thanks!!!
Well I think you can implement it better with a list box like this
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)
Hopefully helps.
Kandyfloss
V 7.0642.0
18-10-06
RH-51
Nokia 7610
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!!!
BR
Rafael.
Sorry, never used myselfBut since I was interested in the question and the other replies were pointing close enough to right direction, I did some basic RTFM. Nothing special...
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.
http://www.mobilenin.com/mobilepytho...0-eventfu.html
Enjoy,
--jouni