maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Example Python/GTK Maemo apps + Sources? (https://talk.maemo.org/showthread.php?t=32257)

code177 2009-09-30 18:03

Example Python/GTK Maemo apps + Sources?
 
Hey all!

So I was wondering if we could get a list of some example application with their source for us new developers to look at. That would be really awesome, and I know a lot of you have some great code out there.

It would definitely speed up the learning process for us!

Thanks everyone :)

twaelti 2009-09-30 18:30

Re: Example Python/GTK Maemo apps + Sources?
 
You can find a lot of source code of current fremantle apps here:
http://repository.maemo.org/extras-d...e/free/source/

One example is the fremantle version of my mClock:
http://repository.maemo.org/extras-d...urce/m/mclock/ (It is however quite special as it includes a PyGTK/PyGame mix).

Mayn others include much better apps like gPodder or pyGTKEditor.

epage 2009-09-30 18:37

Re: Example Python/GTK Maemo apps + Sources?
 
Of course, in my infinite bias I'll add Dialcentral to that list.

Alex Atkin UK 2009-10-03 11:20

Re: Example Python/GTK Maemo apps + Sources?
 
I see gPodder is written in Python but overkill for a newbie to get to grips with. The problem I think is a lack of a good "getting started" guide.

I personally tried the Hello World sample. Problem is, I can't see what you need to do next to actually create something useful with different pages, buttons, text fields, pulling data from the web, etc.

Perhaps I have thrown myself into the deep end trying to do this when most of what I have done in the past has been cut/paste/edit jobs in PHP and JavaScript. But I really want to learn Python and Linux programming, when I found out about the N900 it seemed the perfect tool to do both those and get a mobile device configured how I want it.

I was frustrated and dismayed at how Windows Mobile halts the CPU when you stick it into standby and am curious how Maemo handles that too.

twaelti 2009-10-03 11:43

Re: Example Python/GTK Maemo apps + Sources?
 
Quote:

Originally Posted by Alex Atkin UK (Post 338690)
I see gPodder is written in Python but overkill for a newbie to get to grips with. The problem I think is a lack of a good "getting started" guide.

I personally tried the Hello World sample. Problem is, I can't see what you need to do next to actually create something useful with different pages, buttons, text fields, pulling data from the web, etc.

Try some tutorials not directly related to Maemo, but more general about Python (the programming language) and PyGTK+ (the python interface to the primary toolkit/library used in Maemo right now) or PyQT (the upcoming toolkit). Once you have that under control, it's a very small step to get up and running in Maemo.

akazero 2009-10-03 11:57

Re: Example Python/GTK Maemo apps + Sources?
 
Quote:

Originally Posted by twaelti (Post 338698)
Try some tutorials not directly related to Maemo, but more general about Python (the programming language) and PyGTK+ (the python interface to the primary toolkit/library used in Maemo right now) or PyQT (the upcoming toolkit). Once you have that under control, it's a very small step to get up and running in Maemo.

Thanks for the links they are very helpful! I was however wondering if there is a tutorial for this small step how to deploy an app in Maemo. I know my way round in Python but am looking for an up to date example that explains step by step how to create an application with Python (PyGTK or PyQT) for Maemo 5. Is there something like that? I searched and skimmed the documentation but couldn't really find what I was looking for.

Jaffa 2009-10-03 21:03

Re: Example Python/GTK Maemo apps + Sources?
 
Perhaps my own Hermes will be a useful starting point for you? I don't claim it's a bastion of good UI design, or that the UI is put together in the "best" way for Python.

However, I will claim the app is built on sound OO principles (GUI separate from worker classes etc.) and it features all the main UI bits: app menus, buttons, check boxes, inputs, scrolling lists, progress bars etc.

Source code at:

http://repository.maemo.org/extras-d...urce/h/hermes/

akazero 2009-10-03 22:27

Re: Example Python/GTK Maemo apps + Sources?
 
Thanks. The Hermes and mClock sources as examples should get me started as far as Python development is concerned. I will also have a look at the documentation specifically on Maemo packaging and hope to be able to take it from there...

Alex Atkin UK 2009-10-05 15:29

Re: Example Python/GTK Maemo apps + Sources?
 
Can widgets be written in Python?
Or is there a widget that can embed a small HTML page with JavaScript etc? (like how Windows Sidebar Gadgets work)

HangLoose 2009-12-10 13:38

Re: Example Python/GTK Maemo apps + Sources?
 
Quote:

Originally Posted by Alex Atkin UK (Post 339810)
Can widgets be written in Python?
Or is there a widget that can embed a small HTML page with JavaScript etc? (like how Windows Sidebar Gadgets work)

Also interested in knowing if widgets can be written in Python...

updated: yes they can... http://wiki.maemo.org/PyMaemo/HildonDesktop

my question now is actually a more advanced tutorial? can anyone provide me with directions?

thanks


All times are GMT. The time now is 21:25.

vBulletin® Version 3.8.8