You Are Here:

Community: Developer Discussion Boards

#1 Old Python S60 does not recognize style='checkbox' in multi_selection_list - 2006-10-30, 11:09

Join Date: Oct 2006
Posts: 5
amnoid2000
Offline
Registered User
--I didn't find any thread with this problem, Apologies if I missed it --

Python S60 is fine with:
index = appuifw.selection_list(L)

but does not like this:
index = appuifw.selection_list(L, style='checkbox')

I get the following error:
TypeError: selection_list() takes no keyword arguments

I am running this on a 6680

Any Ideas?
Reply With Quote

#2 Old Re: Python S60 does not recognize style='checkbox' in multi_selection_list - 2006-10-31, 14:04

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi amnoid2000 and welcome to the forum!

if you want to use checkbox as style then use only:
Code:
index = appuifw.selection_list(L)
checkbox is the default parameter so no need to mention it. But it's strange that it complains.

Try the following to see if it complains also:
Code:
tuple = appuifw.multi_selection_list(L, style=’checkmark’, search_field=1)
Little hint: always check PythonForS60_doc_1_3_12.pdf. There very often small working examples with the methods descriptions.

Happy Python programming to you

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

Tips and modules:
http://www.lfdm.net/thesis
Reply With Quote

#3 Old Re: Python S60 does not recognize style='checkbox' in multi_selection_list - 2006-11-01, 11:18

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by lfd
Hi amnoid2000 and welcome to the forum!

if you want to use checkbox as style then use only:
Code:
index = appuifw.selection_list(L)
checkbox is the default parameter so no need to mention it. But it's strange that it complains.
You'd better to check for doc yourself before
Because selection_list has no style parameter so it's normal that it complains
multi_selection_list has a style parameter with a default style ('checkbox') Look at doc page 16 !
Quote:
Try the following to see if it complains also:
Code:
tuple = appuifw.multi_selection_list(L, style=’checkmark’, search_field=1)
Little hint: always check PythonForS60_doc_1_3_12.pdf. There very often small working examples with the methods descriptions.

Happy Python programming to you

LFD


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
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
HTTP headers for S60 3rd Ed. Browser Nokia Ron General Browsing 16 2009-09-22 15:28
Please help installing Python libraries on S60 ericroijen Python 11 2009-07-18 11:43
Python S60 Emulator NAYSAMBO Python 25 2009-04-08 11:22
Required SDK for s60 python language mohib Python 2 2006-10-11 23:09
What is going on with Vibration on S60? amd_rikus Mobile Java General 3 2006-06-16 01: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