You Are Here:

Community: Developer Discussion Boards

#1 Old Implementing settings screen - 2008-04-04, 19:40

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
How can I make settings screens in python?

Just like this: http://www.bilder-hochladen.net/files/4xyg-3t.jpg

Thanks!!!
Reply With Quote

#2 Old Re: Implementing settings screen - 2008-04-04, 20:01

Join Date: Dec 2007
Posts: 134
Location: India
kandyfloss's Avatar
kandyfloss
Offline
Regular Contributor
Quote:
Originally Posted by Rafael T. View Post
How can I make settings screens in python?

Just like this: http://www.bilder-hochladen.net/files/4xyg-3t.jpg

Thanks!!!
Have you tried to set and use some flags?

You can have them stored in a text file for reference and using them you can take a note of these customised settings.


Kandyfloss

V 7.0642.0
18-10-06
RH-51
Nokia 7610
Reply With Quote

#3 Old Re: Implementing settings screen - 2008-04-04, 23:11

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by kandyfloss View Post
Have you tried to set and use some flags?

You can have them stored in a text file for reference and using them you can take a note of these customised settings.
But the screen will be just like that?

Can you give me a example of how can I use this?

Thanks for the reply!!!
Reply With Quote

#4 Old Re: Implementing settings screen - 2008-04-05, 19:24

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
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,1.9.7,pygame,PyS60 CE on E90 , N810 with Python 2.5.2 and ... last PyS60 1.9.7 with touch ui on 5800 !

pys60 extension modules on http://cyke64.googlepages.com/
Reply With Quote

#5 Old Re: Implementing settings screen - 2008-04-05, 21:44

Join Date: Dec 2007
Posts: 134
Location: India
kandyfloss's Avatar
kandyfloss
Offline
Regular Contributor
Quote:
Originally Posted by Rafael T. View Post
But the screen will be just like that?

Can you give me a example of how can I use this?

Thanks for the reply!!!
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.
Quote:
Options->Max Seach Results->5
Hopefuly helps


Kandyfloss

V 7.0642.0
18-10-06
RH-51
Nokia 7610
Last edited by kandyfloss : 2008-04-05 at 21:45. Reason: added
Reply With Quote

#6 Old Re: Implementing settings screen - 2008-04-05, 22:01

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
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!
Reply With Quote

#7 Old Re: Implementing settings screen - 2008-04-06, 16:11

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
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.:

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)
Thanks!
Reply With Quote

#8 Old Re: Implementing settings screen - 2008-04-07, 13:37

Join Date: Dec 2007
Posts: 134
Location: India
kandyfloss's Avatar
kandyfloss
Offline
Regular Contributor
Quote:
Originally Posted by Rafael T. View Post
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.:

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)
Thanks!
Didn't setting and resetting flags work for you?

say i = (20,40) in beginning

have a flag,
Quote:
flag=0
When 9 is selected set the flag as 1
Quote:
flag=1
Then when you implement or use value of i check the flag
Code:
if (flag==1):
    i = (60,80)
else: #else is optional here, as i is initialized at the start
    i = (20,40)
Thus we can say Nine was selected.

Hopefully helps,


Kandyfloss

V 7.0642.0
18-10-06
RH-51
Nokia 7610
Reply With Quote

#9 Old Re: Implementing settings screen - 2008-04-08, 01:01

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by kandyfloss View Post
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 1


Then when you implement or use value of i check the flag
Code:
if (flag==1):
    i = (60,80)
else: #else is optional here, as i is initialized at the start
    i = (20,40)
Thus we can say Nine was selected.

Hopefully helps,
So, it should be like this?

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)
I tried this, but it doesn't work. What to do???

Thanks!!!
Reply With Quote

#10 Old Re: Implementing settings screen - 2008-04-08, 19:37

Join Date: Dec 2007
Posts: 134
Location: India
kandyfloss's Avatar
kandyfloss
Offline
Regular Contributor
Quote:
Originally Posted by Rafael T. View Post
So, it should be like this?

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)
I tried this, but it doesn't work. What to do???

Thanks!!!
Well I think you can implement it better with a list box like this

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)
The use of flag gets eliminated here due to using index as a flag.

Hopefully helps.


Kandyfloss

V 7.0642.0
18-10-06
RH-51
Nokia 7610
Reply With Quote

#11 Old Re: Implementing settings screen - 2008-04-08, 20:26

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by Rafael T. View Post
I tried this, but it doesn't work. What to do???
Please tell how it doesn't work... What did you expect and what did you get.

Is the problem getting the user selection? Did you implement "save_hook" or try using "the subscript notation f[i]" to check the values?

Wondering,

--jouni
Reply With Quote

#12 Old Re: Implementing settings screen - 2008-04-08, 21:13

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
Rafael T.
Offline
Forum Nokia Champion
Quote:
Originally Posted by JOM View Post
Please tell how it doesn't work... What did you expect and what did you get.

Is the problem getting the user selection? Did you implement "save_hook" or try using "the subscript notation f[i]" to check the values?

Wondering,

--jouni

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.
Reply With Quote

#13 Old Re: Implementing settings screen - 2008-04-08, 21:45

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
Quote:
Originally Posted by Rafael T. View Post
Hope JOM can give me an example of the use of save_hook
Sorry, never used myself But 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
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
SIP VoIP Settings Tool petrosoi VoIP 19 2009-01-18 06:23
New SIP settings without using settings -> sip settings miikkis Symbian Networking & Messaging 20 2008-11-20 14:46
how to change Screen from Form to FullCanvas ihadreampp Mobile Java General 3 2003-08-15 09:50
How to send complete email settings? kick121 Smart Messaging 2 2003-02-26 06:48
Problem sending GPRS settings maronk Smart Messaging 1 2002-09-24 07:28

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d81449X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZpythonQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZuserE5ftagQSxpythonX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ