You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy Trying to create my first Python app to S60 2nd Ed - 2008-06-26, 21:56

Join Date: Aug 2006
Posts: 17
netomarin's Avatar
netomarin
Offline
Registered User
Hi all,

I'm trying to create a simple Python application. So, I visited http://www.mobilepythonbook.com/ and took a little example code:
Code:
import appuifw

data = appuifw.query("Type something:", "")
appuifw.note("You typped: "+ str(data), "info")
And saved it as firstApp.py. So, I used this command to create a sis file compatible with my Nokia 6681:

py2sisng.py --presdk20 --uid=0x01000000 firstApp.py.py ~/first.sis

And so, I sent first.sys to my phone using bluetooth and it's installed correctly. But, when I try to run it I got "Network error".

Am I doing something wrong?????

Thanks.
Neto Marin
Reply With Quote

#2 Old Re: Trying to create my first Python app to S60 2nd Ed - 2008-06-27, 02:23

Join Date: Jun 2005
Posts: 382
y.a.k
Offline
Regular Contributor
Well, I'm not sure if this is the cause of your problems but since 6681 is a 2nd ed. FP2 phone, you shouldn't be using the --presdk20 switch. The switch says pre-SDK-2.0 which means you have to use it for 1st ed. builds only.
Reply With Quote

#3 Old Re: Trying to create my first Python app to S60 2nd Ed - 2008-06-27, 07:08

Join Date: Feb 2008
Posts: 2,546
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Offline
Forum Nokia Champion
hi netomarin
why dont you use py2sis which is working good for 2nd edition phones.
hope that will help you


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Trying to create my first Python app to S60 2nd Ed - 2008-06-27, 07:15

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
And if you are begineer then just send .py scripts to your phone via bluetooth it will be received as SMS and then using PyS60 interpreter just run those scripts.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#5 Old Re: Trying to create my first Python app to S60 2nd Ed - 2008-06-27, 12:11

Join Date: Feb 2008
Posts: 25
Location: Moscow Russia
Send a message via ICQ to Versoul Send a message via Skype™ to Versoul
Versoul
Offline
Registered User
On - to mine a code
Code:
appuifw.query("Type something:", "")
not correct 2nd argument must be text or number ...
Code:
import appuifw

data = appuifw.query("Type something:", "text")
appuifw.note("You typped: "+ str(data)
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
DndTimedOut (-5120) on S60 2nd Fp3 Joney.Zhang Symbian Networking & Messaging 11 2009-03-10 17:35
Python for S60 1.4.2 released tvijayan Python 22 2008-04-15 20:20
Setting the remote mailbox in use in S60 2nd kthui Symbian Networking & Messaging 1 2007-02-15 18:13
What is going on with Vibration on S60? amd_rikus Mobile Java General 3 2006-06-16 01:29
Stand-alone Python app not launched correctly from other native app bercobeute Python 2 2005-03-04 15:30

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