Python....................
| Tue, 2005-07-19 06:28 | |
|
|
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
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} |






Forum posts: 1
Forum posts: 118
i've installed Python_1_0for_series60_fp2.
and that script working well.
Prashant {prashu}
Forum posts: 20
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
Forum posts: 118
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}
Forum posts: 20
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