Reply
Thread Tools
Posts: 84 | Thanked: 1 time | Joined on Jan 2006
#1
Check out Teemu's blog for info on how to get started developing Python apps for your 770.

If you go to http://pymaemo.sourceforge.net/cgi-bin/moin.cgi/ you'll find the download packages. If you just want to use SSH and write scripts ON your 770, just get the one that says "runtime."

Then go back to Teemu's blog and write up the sample app. I tried it; the sample app (a simple Gtk window that you can kill) worked for me, and it was 22 lines of code.

The only downside is the runtime .deb is enormous, in terms of the 770; something like 4 megs.

I'd like to see some working PyGame examples next...
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#2
I agree that it's really nice to have Python and the GUI support libraries this early in the 770's life. It took much longer for the same to be available for the Sharp Zaurus, for instance.

Another nice surprise is that the sample app starts reasonably fast (at least in comparison of a similar "Hello world" under Qtopia on a more powerful Zaurus), and doing so does not immediately shoot up the memory meter into the red. This is good news, since for most "simple" apps, both the start time and the memory footprint are essentially those of the python runtime and associated libraries (pyGtk, pygame...). Thus there is a good chance that these development tools will appear viable for the 770 platform, opening the way for non-C++ coders to create their own GUI apps far more easily.

I have deleted (manually) the previous non-maemo debs I had unpacked with dpkg -X, and installed the runtime in their place. I think the 4-meg (storage) footprint is reasonable, though it does not include a 100% complete Python distribution. The Zaurus equivalent (with pyQt) is much bigger.

As for Teemu's sample, it "works" but is not completely "hildonized" yet because it does not appear in the task bar : if you minimize it, it disappears altogether and must be killed from the command line... I don't know if this is a shortcoming of the python-hildon bindings or if he just hasn't come around to that yet.

As for pygame, many if not most apps on the pygame site should work -- there is a screenshot of SolarWolf running on a 770 somewhere. But I guess what you meant is a "hildonized" pgame app : that would be an interesting example, yes.
 
Posts: 90 | Thanked: 8 times | Joined on Jan 2006
#3
on the Pygtk-Site "http://www.pygtk.org/applications.html" are many great applications. yesterday i was looking through. But most of them require additional libraries like PIL.

it would be nice, if someone can compile it ...
 
Posts: 84 | Thanked: 1 time | Joined on Jan 2006
#4
Originally Posted by rachid
on the Pygtk-Site "http://www.pygtk.org/applications.html" are many great applications. yesterday i was looking through. But most of them require additional libraries like PIL.

it would be nice, if someone can compile it ...
Seconded.

There's a Python app called Skencil that caught my eye; it needs the PIL.

http://www.nongnu.org/skencil/download.html#N2

A vector-drawing utility.
 
Posts: 35 | Thanked: 3 times | Joined on Mar 2006
#5
That Skencil looks really nice and promising. Has anybody tried it on a 770? m
 
teemu's Avatar
Posts: 40 | Thanked: 1 time | Joined on Nov 2005 @ Espoo, Finland
#6
Originally Posted by mrn
That Skencil looks really nice and promising. Has anybody tried it on a 770? m
I briefly tried to get it work with the 770, but seems like it requires also Tcl/Tk. There seems to be a port of Tcl/Tk for Nokia 770 also, but I couldn't get it work with that one.

I've ported PIL for Nokia 770 that can be downloaded from here in case someone wants to try to port this. Somehow I have a feeling that it would be really slow on Nokia 770, but you never know.
__________________
Teemu

www.teemuharju.net
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:58.