NOTE:
this thread is about Jython (Python over PersonalJava) for UIQ; proper thread for REAL Python is here:
http://discussion.forum.nokia.com/fo...d.php?t=104246
Is it possible to port Python from s60 to UIQ platform?
NOTE:
this thread is about Jython (Python over PersonalJava) for UIQ; proper thread for REAL Python is here:
http://discussion.forum.nokia.com/fo...d.php?t=104246
Is it possible to port Python from s60 to UIQ platform?
Last edited by cassioli; 2007-03-23 at 07:47.
Let me explain better...
I know about an existing attempt of porting Python to UIQ (I mean 2.x version), but it does not work on Motorola a1000.
I'm not a skilled c++ programmer, I know just the basis of compiling ready-made symbina c++ sources or adding some minor improvements to a source (such as adding a call to a library not already included in the project).
Is that enough to compile python for UIQ? Or should the code be heavily rewritten?
The code uses mostly Symbian APIs, so most modules work directly. The one thing that will need to be completely rewritten is the appuifw module.
So no, it's not just a matter of recompiling, if you want to have a user interface for your apps.
mmmhh...Originally Posted by jplauril
I don't actually need python for its user interface, but for its "binding" to the hardware, as I usually develop in OPL, whose libraries are no more updated since 2 years.
Being able to write a "skeleton" app in python which just accepts keypresses would be enough, as I could easily "send keypresses" to other apps using OPL, i.e. I could control the python app at my will.
So, is it possible to compile python without user interface module?![]()
Or is it just a crazy question?![]()
It is possible to compile Python without the user interface (with some alterations to the code), but you'd get just an app with no user interface whatsoever. I.e., a background "daemon" process. I assume OPL has access to local TCP sockets? If so, you could start a Python process in the background and communicate with it using sockets over the local network interface. This has been done before to hook up Python to different languages.
Any idea what other things need to be done? has anyone attempted to even try and compile pys60 under the S80 SDK?Originally Posted by jplauril
UIQ support PersonalJava that seem ~ Java1.1.8
,so Jython (J Python) can run on UIQ
,but somehow it error to run jython.jar.
You need to install jython on your PC and extract jython.jar into folder package
,before put it to UIQ.
And You need JythonConsole in awt-version(J4SP.py)
you can D/L (J4SP.py+Jython) here...
http://www.smart-mobile.com/forum/viewtopic.php?t=98932
Program JRun in JCompile APP. make it easy to run .class-file in UIQ
(no need .sis , .aif) only set JRun.txt
-cp C:\jython -Dpython.home=C:\jython org.python.util.jython C:\jython\j4sp.py
http://www.freepoc.org/software.php
I try to figure out how to make it in easy step...
Happy New Year 2007...
Last edited by bpitk; 2006-12-31 at 15:59. Reason: more info add
Can any moderator change the thread title to "Python for UIQ 2"? (as long as this thread is about UIQ 2; if anybody is able to apply these posts to UIQ 3, please tell us!)
how can I use S60 python modules on my UIQ phone?Originally Posted by jplauril
After installinh Jython, if I try "import sysinfo" I get "ImportError: no module named sysinfo" error. Are "modules" single files I can just copy into my phone?