Python....................

Login to reply to this topic.
Tue, 2005-07-19 06:28
Joined: 2005-04-01
Forum posts: 118
HI SYMBIANS

There is no doubt that c++ is first choice of developers.
but some times it looks so tuff (i think so).

well try to use Python as it is easy to learn.

To use python

  • Download SDK from nokia site
  • Install that (will install a Python application that actually python intrepreter)
  • write scripts (python) and execute very easy no need to build the script just change code and run and see the results


try this

"inport appuifw
title1=appuifw.app.title
appuifw.app.title=u"NEW"
appuifw.note(u"Python",'info')
appuifw.app.title=title1
"

save this script as "xyz.py" and store it to "z\system\APPS\PYTHON"
run Python application and select Run script then select xyz.py
and see how it is easy.

Prashant {prashu}


Wed, 2005-08-24 00:17
Joined: 2005-08-24
Forum posts: 1
Re: Python....................
hello, I tried to execute your script, but it doesn't go... Which interpreter did you install? My version is PythonForSeries60_1_1_6_for_2ndEd_FP2_SDK, hello.
Wed, 2005-08-24 12:10
Joined: 2005-04-01
Forum posts: 118
Re: Python....................
HI
i've installed Python_1_0for_series60_fp2.
and that script working well.

Prashant {prashu}

Mon, 2005-11-21 10:04
Joined: 2005-09-09
Forum posts: 20
Problem with Running Python script on emulator
Hi Prashu

I tried installing Python for series 60(PythonForSeries60_1_2_for_2ndEd_SDK) to series 60 SDK 1.2 (for Nokia 3660)  But i do not get the python icon when i run the emulator. I installed it in EPOCROOT/epoc32/release/winscw/udeb/z/syatem/apps/PYTHON folder.  I dont know hwere i went wrong.

Could anyone please help me on this.

Regards
Abhinav
Thu, 2005-12-01 10:15
Joined: 2005-04-01
Forum posts: 118
Re: Python....................
Hi Abhinav,

i'm not sure but ur trying to use python sdk for 2nded
and using Series 60's 1.2 ed sdk. seems they may not
compatable.

Actually i've installed on sereis 60 2nded sdk with fp2
and python working.

Please check compatability

Prashant {prashu}

Fri, 2005-12-02 16:11
Joined: 2005-09-09
Forum posts: 20
Re:problem in embedding python interpretor
hi Prashu

Thanx for the help!! I ve sorted out that problem. it was indeed an SDK issue.

Now i have another problem. I want to embed python interpretor in exe(written in c++)

foll is the code snippet:--

   CSPyInterpreter* p = CSPyInterpreter::NewInterpreterL();
   CleanupStack::PushL(p);
   TBuf8<200> outputBuffer = _L8("e:\\system\\apps\\python\\abhinav.py");
   char *argv[1];
   TInt argc;
   argv[0] = (char*)outputBuffer.PtrZ();
   argc = 1;
   TInt ret = p->RunScript(argc, argv);
   CleanupStack::PopAndDestroy();

but the problem is .exe exits w/o any error and without running the script abhinav.py. 

One more question, is it possible to run scripts involving UI from exe??

Regards
ABhinav
  • Login to reply to this topic.