×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    17

    Unhappy Trying to create my first Python app to S60 2nd Ed

    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

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    386

    Re: Trying to create my first Python app to S60 2nd Ed

    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.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Trying to create my first Python app to S60 2nd Ed

    hi netomarin
    why dont you use py2sis which is working good for 2nd edition phones.
    hope that will help you

  4. #4
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Tempe, AZ
    Posts
    411

    Re: Trying to create my first Python app to S60 2nd Ed

    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.

  5. #5
    Registered User
    Join Date
    Feb 2008
    Location
    Moscow Russia
    Posts
    25

    Re: Trying to create my first Python app to S60 2nd Ed

    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)

Similar Threads

  1. Replies: 3
    Last Post: 2010-03-19, 16:46
  2. DndTimedOut (-5120) on S60 2nd Fp3
    By Joney.Zhang in forum Symbian Networking & Messaging (Closed)
    Replies: 11
    Last Post: 2009-03-10, 16:35
  3. Python for S60 1.4.2 released
    By tvijayan in forum Symbian
    Replies: 22
    Last Post: 2008-04-15, 19:20
  4. Setting the remote mailbox in use in S60 2nd
    By kthui in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-02-15, 17:13
  5. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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