maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Any Python apps, for N9? (https://talk.maemo.org/showthread.php?t=85105)

jd4200 2012-06-27 00:11

Re: Any Python apps, for N9?
 
Quote:

Originally Posted by Slocan (Post 1227763)
Here is how I interact between Python and QML in FeedingIt.

Can I ask, how exactly did you go about coding and testing the app.?

AFAIK, there is no SDK which supports Python, and so using the N9 simulator is not an option. The only option I see is SSH'ing to the device and coding away without the use of an IDE, and running the code nativley on it, which seems a bit cumbersome.

Is this the method you used?

mattaustin 2012-06-27 11:32

Re: Any Python apps, for N9?
 
Have a look at the Harmattan organisation on github - https://github.com/harmattan . There are a few python/qml apps there.

inean 2012-06-27 11:56

Re: Any Python apps, for N9?
 
Pyside already supports QtSimulator. Get Pyside sources from github and build them against SDK simulator libs. After that, create a virtualenv environment an install Pyside modules.on it. This approach works for me

Slocan 2012-06-27 16:34

Re: Any Python apps, for N9?
 
Quote:

Originally Posted by jd4200 (Post 1228018)
Can I ask, how exactly did you go about coding and testing the app.?

I installed pyside and a version of the Qt Components (see this blog ) on my computer (running Ubuntu, not sure about other platforms), so I could test directly on the desktop (it doesn't look quite the same, but testing the interaction between QML and python was easy enough this way).

Later, I moved the project into the Qt SDK (mainly to create the part that uses the synchronization framework which needs to be in C++), and added a few lines in the .proj file to deploy the python files. So I let the Qt SDK create the package and deploy to the device.

MartinK 2012-06-27 16:57

Re: Any Python apps, for N9?
 
Check out Mieru, modRana & RePho in my Github repository. They are all written in Python and use QML. :)

caco3 2012-07-02 21:17

Re: Any Python apps, for N9?
 
In case you would like to have some examples, I wrote several apps in Python+QML for the N9.
See http://www.ruinelli.ch/harmattan or http://store.ovi.com/publisher/George%20Ruinelli for a list.
For some of them I also already provided the source on my website or the OBS build server.

As for the testing, I either start them directly on my device (copy down through SSH and start in SSH shell), or since I work under Linux, I just can start the directly on my PC.


All times are GMT. The time now is 20:13.

vBulletin® Version 3.8.8