Active Topics

 


Reply
Thread Tools
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#1
A few years ago i had installed this python editor on my N73 and had downloaded a bunch of example scripts, each script showing how to do one thing, like one for pop up notifications, one for playing sounds etc, i think in that same group came this one that would show a green box (or was it a ball?) that would bounce against the screen edges and fall with "gravity", with the directional control applying impulse to it. I was starting to learn python, even though i had to code using a numeric keypad, but pretty much on about that same time the deterioration of my eyes condition started to accelerate signinificantly, and on top of that depression also caught me good and i dropped it. Now with surgeries done and healed, and with my new N900 i'm starting to try learning Python again; the point of this thread is to ask if any of you know where i can download a similar pack of scripts going from simple console "hello world"s to acessing the hardware and making user interfaces and graphics and stuff, do you?
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#2
I think this scripts are the PyQt Example. If this is the case, it s available from your Application Manager in the extras-devel repository.

EDIT : It s available in testing : http://maemo.org/packages/view/python2.5-qt4-doc/

Last edited by Khertan; 2010-08-21 at 05:52.
 

The Following 2 Users Say Thank You to Khertan For This Useful Post:
Posts: 15 | Thanked: 87 times | Joined on Dec 2009
#3
TiagoTiago,

If you're interested in first learning just pure Python, for example the Dive into Python book has plenty of examples. Then, the ActiveState Python Cookbook has examples (recipes) for about every generic algorithm or language feature you might wish (might be a bit specialized, though).

Assuming you're keen on GUI programming on Maemo. I warmly recommend you to go with PySide. PySide has bindings available for Qt Mobility, making it possible to access several crucial native APIs from Python, and in any case, it's the future-proof version when moving onwards to Harmattan and MeeGo. PySide examples are available at

http://qt.gitorious.org/pyside/pysid...s/trees/master

and if you want at tarball,

http://qt.gitorious.org/pyside/pysid...tarball/master

Cheers,

ma.
 

The Following User Says Thank You to mairas For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
Originally Posted by Khertan View Post
EDIT : It s available in testing : http://maemo.org/packages/view/python2.5-qt4-doc/
It's available from Extras (the version in extras-testing/devel is just a sideeffect of an upstream release, it doesn't contain significant differences). It is a self-contained package of runnable examples for most modules and major classes of Qt, and it doesn't require you to install any modules previously, do scp/chmodding, etc, to make them runnable. AFAIK the PySide examples and the PyQt examples are roughly the same thing.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#5
http://wiki.maemo.org/PyMaemo

(how hard is it to check wiki first and post a thread after that?!?!)
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Khertan's Avatar
Posts: 1,012 | Thanked: 817 times | Joined on Jul 2007 @ France
#6
Originally Posted by ossipena View Post
http://wiki.maemo.org/PyMaemo

(how hard is it to check wiki first and post a thread after that?!?!)
How is hard to not post such answer ?
 

The Following 2 Users Say Thank You to Khertan For This Useful Post:
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#7
Heh, Tiago seems to have had it rough lately, cut the guy some slack, no ?...
__________________
maemo blog
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:56.