×

Discussion Board

Results 1 to 8 of 8

Thread: Python on 5230

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Python on 5230

    Hi guys

    Im new to programming mobile devices. I have only little Python skills but i think its enough to try around.

    I searched the whole web but i dont know how to make SISX-Files on my PC.

    I want to code on my PC and then compile it to Symbian-Exe and then install it on my phone. I dont think it makes fun to code on my phone :S

    How to do this?? Ive not found any site that can help me

    Ciao

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    3

    Re: Python on 5230

    Look at the pys60 documentation:
    http://pys60.garage.maemo.org/doc/s60/s60.html
    under "Packaging a Sample Application", it explains how to create a standalone python application. Also at the following page:
    http://wiki.opensource.nokia.com/pro...stalling_PyS60
    under "Setting up the Bluetooth Console" it is explained how to use your pc as a console to test simple scripts before producing the actual application (very useful).

    Ciao
    G.

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Python on 5230

    Wheres the error in here?

    >>> screen = Image.new((640,360))
    Traceback (most recent call last):
    File "<console>", line 1, in <module>
    NameError: name 'Image' is not defined
    I imported graphics.

  4. #4
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Python on 5230

    Use

    Code:
    import graphics
    
    screen = graphics.Image.new((640, 360))
    or

    Code:
    from graphics import Image
    
    screen = Image.new((640, 360))

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Python on 5230

    Thank you, this forums are TOP!

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    5

    Re: Python on 5230

    I got another question...

    How to run *.py-Files which i have on the Memory-Card of my phone on the phone? What to type into Python-Console?

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Python on 5230

    Quote Originally Posted by Organized View Post
    I got another question...

    How to run *.py-Files which i have on the Memory-Card of my phone on the phone? What to type into Python-Console?
    Search the Wiki for the words "execute script". Remeber that the memory card is drive E:

  8. #8
    Regular Contributor
    Join Date
    May 2007
    Posts
    75

    Re: Python on 5230

    Code:
    execfile("e:\\python\\myscript.py")

Similar Threads

  1. Python for S60 1.9.6 released
    By tvijayan in forum Symbian
    Replies: 27
    Last Post: 2009-07-19, 15:52
  2. Please help installing Python libraries on S60
    By ericroijen in forum Symbian
    Replies: 11
    Last Post: 2009-07-18, 10:43
  3. Python for S60 1.9.4 is now released
    By tvijayan in forum Symbian
    Replies: 9
    Last Post: 2009-05-27, 10:39
  4. Python for S60 1.9.3 released
    By tvijayan in forum Symbian
    Replies: 40
    Last Post: 2009-04-03, 15:00
  5. Python for S60 1.9.0 released
    By tvijayan in forum Symbian
    Replies: 48
    Last Post: 2009-01-27, 15:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×