You Are Here:

Community: Developer Discussion Boards

Reply « Previous Thread | Next Thread »

#1 Old about python for s60 - 2006-11-01, 09:36

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hi, i m using python for s60 for doing a mobile prog. i had installed the setup but hw to do programming for mobile. i think sdk is required. i downloaded the SDK ver3 but i think supports only on windows2000 sp4 or winxp sp2, i want to install it on windows98, i dont have win2000 or winxp. pl suggest me some old ver. which can be installed on win98. i m hanged up my proj bcoz of this difficulty. Anyone pl help me out as soon as possible.........
Reply With Quote

#2 Old Re: about python for s60 - 2006-11-01, 10:17

Join Date: Feb 2005
Posts: 1,353
Location: Belgium (Europe)
cyke64's Avatar
cyke64
Offline
Super Contributor
Quote:
Originally Posted by sagars
hi, i m using python for s60 for doing a mobile prog. i had installed the setup but hw to do programming for mobile. i think sdk is required. i downloaded the SDK ver3 but i think supports only on windows2000 sp4 or winxp sp2, i want to install it on windows98, i dont have win2000 or winxp. pl suggest me some old ver. which can be installed on win98. i m hanged up my proj bcoz of this difficulty. Anyone pl help me out as soon as possible.........
I wish you Sagars a friendly welcome to this Forum
First you can write your app with any text editor and run it with your S60 phone after installing Python on your phone !
If you want develop on emulator you can install SDK but I read the requirements and all need Win 2000 or Win XP.
For installation go here


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

#3 Old Re: about python for s60 - 2006-11-01, 14:20

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by cyke64
I wish you Sagars a friendly welcome to this Forum
First you can write your app with any text editor and run it with your S60 phone after installing Python on your phone !
If you want develop on emulator you can install SDK but I read the requirements and all need Win 2000 or Win XP.
For installation go here
hi i installed the pythonscript shell in mobile but hw to edit programing in that. what is the interactive console for. pl reply.........

thank u........
Reply With Quote

#4 Old Re: about python for s60 - 2006-11-01, 14:33

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi sagars,

Quote:
hi i installed the pythonscript shell in mobile but hw to edit programing in that. what is the interactive console for. pl reply.........
hmmm.... I not sure what you ask! The python script shell allows you to see python in your phone application menu.

To make scripts, create a text file on your computer and rename it with a .py extension. Write your program and push the file on the phone via bluetooth or usb cable in e:\python (on the phone)

Start PyS60 and choose your script in the list to run it.

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

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

#5 Old Re: about python for s60 - 2006-11-02, 04:53

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
where i will get the programing information for python. i want the detail of python programming language and some sample script, i mean the source code.
Reply With Quote

#6 Old Re: about python for s60 - 2006-11-02, 09:26

Join Date: Mar 2003
Posts: 6,211
petrib
Offline
Forum Nokia Champion
http://www.python.org/

http://sourceforge.net/projects/pys60
Reply With Quote

#7 Old Re: about python for s60 - 2006-11-02, 09:52

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Some basic PyS60 stuff at http://mobilenin.com/


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

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

#8 Old Re: about python for s60 - 2006-11-04, 06:53

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
up to my knowledge, i think we can write python script inside mobile phone itself without need of pc. ca u pl tell me how to do that.
Reply With Quote

#9 Old Re: about python for s60 - 2006-11-04, 06:56

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by cyke64
I wish you Sagars a friendly welcome to this Forum
First you can write your app with any text editor and run it with your S60 phone after installing Python on your phone !
If you want develop on emulator you can install SDK but I read the requirements and all need Win 2000 or Win XP.
For installation go here
hi, i wanna to know more about SDK's requirement. u told me that all the SDK's require win2000 sp4. but i want to know that up to my knowledge mobile phones were in exists before win2000. so at that time hw they might had programmed, its the real fact to think about.
Reply With Quote

#10 Old Re: about python for s60 - 2006-11-04, 22:10

Join Date: Mar 2003
Posts: 8
Location: Kirkkonummi, Finland
bjanders
Offline
Registered User
Quote:
Originally Posted by sagars
hi, i wanna to know more about SDK's requirement. u told me that all the SDK's require win2000 sp4. but i want to know that up to my knowledge mobile phones were in exists before win2000. so at that time hw they might had programmed, its the real fact to think about.
You don't need the SDK to develop or run Python applications on your phone. Just install the Python interpretter on the phone. Write the Python script using any text editor, for example Notepad, on any computer (using any OS, e.g. Win98, Linux, Mac, whatever you like), and transfer the file with the script to the phone as instructed in an earlier post. You don't need to install anything on your PC.
Reply With Quote

#11 Old Re: about python for s60 - 2006-11-06, 05:27

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hello, i want to know how to edit a program in mobile itself without using the PC. i installed python for S60 in my mobile phone n i also did prog in pc using notepad for displaying hello world, it worked. but nw tell me hw can i edit it using in mobile phone.
Reply With Quote

#12 Old Re: about python for s60 - 2006-11-06, 08:19

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi sagars,

First of all, I would recommend you to write English properly without using any kind of abbreviations for at least the 2 following reasons:
  • some people are not necessary very comfortable with English so you could not get back the help you need from someone that knows the answer to your problem just because they can't get what you want.
  • The second reason it that if one search for help he (she )won't be able to find it in your post because the word won't match with the search engine!
So lease make an effort!

Which phone are you using? Writing scripts from the phone will be very long if you don't have a proper keyboard. But they are of course some text editor for Symbian: http://allaboutsymbian.com/forum/showthread.php?t=51206: this one (there's a link on the page) is in Python! But the installation package seams to be for 2nd edition. So that why you need to check you phone version. Since it's a Python application, by self-signing the .sis you should be able to install and run your app on a 3rd edition device.

There must be others so it's not the perfect solution, some googling would give links to other apps

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

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

#13 Old Re: about python for s60 - 2006-11-07, 10:47

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by lfd
Hi sagars,

First of all, I would recommend you to write English properly without using any kind of abbreviations for at least the 2 following reasons:
  • some people are not necessary very comfortable with English so you could not get back the help you need from someone that knows the answer to your problem just because they can't get what you want.
  • The second reason it that if one search for help he (she )won't be able to find it in your post because the word won't match with the search engine!
So lease make an effort!

Which phone are you using? Writing scripts from the phone will be very long if you don't have a proper keyboard. But they are of course some text editor for Symbian: http://allaboutsymbian.com/forum/showthread.php?t=51206: this one (there's a link on the page) is in Python! But the installation package seams to be for 2nd edition. So that why you need to check you phone version. Since it's a Python application, by self-signing the .sis you should be able to install and run your app on a 3rd edition device.

There must be others so it's not the perfect solution, some googling would give links to other apps

LFD

Thanks, next time i will not use abbrevition..
i am using Nokia 6260, it is series 60 2nd edition phone, i had checked it out.
i had written the program for pop-up window its working properly but i am facing one problem. it is after that after we run script and viewed the message that we had displayed the program comes out. so to check out for next option we again has to run script and then view it. it very tedious job to do. so pl. help me out. below i am sending you my script...........

import appuifw

L = [u"Mtech", u"Company", u"sagar"]
S = [u"balagi nagar", u"kelawadi"]

test = appuifw.popup_menu(L, u"Select & press OK:")
new = appuifw.popup_menu(S, u"Select and press OK")

#if test == 0 :
# appuifw.note(u"welcome to mtech", "info")

if test == 0 and new == 0 :
appuifw.note(u"Mtech, corporate office", "info")

if test == 0 and new == 1 :
appuifw.note(u"Mtech, Factory", "info")

if test == 1 and new == 0 :
appuifw.note(u"Company, embedded", "info")

if test == 1 and new == 1 :
appuifw.note(u"Company, factory", "info")

if test == 2 and new == 0 :
appuifw.note(u"sagar, RnD engg", "info")

if test == 2 and new == 1 :
appuifw.note(u"Not available", "info")
Reply With Quote

#14 Old Re: about python for s60 - 2006-11-07, 13:10

Join Date: May 2006
Posts: 622
Location: Oulu, Finland
lfd
Offline
Super Contributor
Hi Sagars,

it's perfectly normal. You are running a script, i.e the interpreter will run the commands you give to it line by line. So after the last instruction you program will exit.

If you want to have a program that exit only when you want it to, it's simple. Here is an extract you can find at Mobilenin

Code:
import appuifw
import e32

def exit_key_handler():
    app_lock.signal()                <-- 3.Signals the lock i.e means your script  will terminate


round = appuifw.Text()
round.set(u'hello')

# put the application screen size to full screen
appuifw.app.screen='full' #(a full screen)

# other options:
#appuifw.app.screen='normal' #(a normal screen with title pane and softkeys)
#appuifw.app.screen='large' #(only softkeys visible)



app_lock = e32.Ao_lock()        <-- 1.create an active object

appuifw.app.body = round

appuifw.app.exit_key_handler = exit_key_handler
app_lock.wait()                     <-- 2.wait until you signal
And one more thing, next time you post some code, use the CODE tag (# button) in order to keep the indents

LFD


Devices:
Nokia E61 3rd Edition - pys60 1.4.0

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

#15 Old Re: about python for s60 - 2006-11-08, 12:40

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
Quote:
Originally Posted by lfd
Hi Sagars,

it's perfectly normal. You are running a script, i.e the interpreter will run the commands you give to it line by line. So after the last instruction you program will exit.

If you want to have a program that exit only when you want it to, it's simple. Here is an extract you can find at Mobilenin

Code:
import appuifw
import e32

def exit_key_handler():
    app_lock.signal()                <-- 3.Signals the lock i.e means your script  will terminate


round = appuifw.Text()
round.set(u'hello')

# put the application screen size to full screen
appuifw.app.screen='full' #(a full screen)

# other options:
#appuifw.app.screen='normal' #(a normal screen with title pane and softkeys)
#appuifw.app.screen='large' #(only softkeys visible)



app_lock = e32.Ao_lock()        <-- 1.create an active object

appuifw.app.body = round

appuifw.app.exit_key_handler = exit_key_handler
app_lock.wait()                     <-- 2.wait until you signal
And one more thing, next time you post some code, use the CODE tag (# button) in order to keep the indents

LFD
yes its ok with termination, but i wanted to execute a code in a loop. how to edit a loop, or please suggest me some command to execute a code in a loop.
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
Please help installing Python libraries on S60 ericroijen Python 11 2009-07-18 11:43
Python for Series 60 released on Forum Nokia! eriksmartt Python 5 2009-07-14 18:00
Use filebrowser.py to execute your python scripts. zweiberg Symbian Tools & SDKs 1 2006-11-01 14:24
Python C++ Extension with Callback crashing diggerdeep Python 2 2005-11-10 17:33
How to capture a snapshot with Python on Series 60 phones? harrygoesnokia General Symbian C++ 0 2004-07-18 01:56

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