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 :) |
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. |
Re: Example Python/GTK Maemo apps + Sources?
Of course, in my infinite bias I'll add Dialcentral to that list.
|
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. |
Re: Example Python/GTK Maemo apps + Sources?
Quote:
|
Re: Example Python/GTK Maemo apps + Sources?
Quote:
|
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/ |
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...
|
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) |
Re: Example Python/GTK Maemo apps + Sources?
Quote:
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 |
Re: Example Python/GTK Maemo apps + Sources?
Hi All!
Sorry for bumping an old thread but searching through the forums and the internet weren't succesful for my specific problem. I'm trying to write a maemo5 hildon home widget in python according to the wiki. My problem is that when I run it from terminal it behaves as expected but when I add it from the desktop menu (with desktop file in /usr/share/applications/hildon-home/ and .py file in /usr/lib/hildon-desktop/) it doesn't behaves right (does not do the refreshing and showing the infos right)... (It is a simple weather widget, refreshing connected to wifi connection dbus signal) What am I doing wrong...? Maybe someone could point me to the right direction...? Thanks, jm |
Re: Example Python/GTK Maemo apps + Sources?
wrong dbus session?
|
Re: Example Python/GTK Maemo apps + Sources?
Quote:
I do not think that dbus session is wrong because the script is working fine when I run it from terminal... (I use com.nokia.wlancond) (Sidenote: I'm aware of the fact that a python hildon home widget needs "speciel treatment" when using dbus signal - I made those modifications too... ) |
Re: Example Python/GTK Maemo apps + Sources?
Maybe try to put run-standalone.sh infront of the command.
|
Re: Example Python/GTK Maemo apps + Sources?
Quote:
The .desktop file contains only an "X-Path" row where I have to write - let's say - "weather.py" (maybe that is the place you think I should write "run-standalone"?). So my main problem is that it does not want to do the refreshing properly when added from hildon desktop menu. From terminal it is working fine... Edit:// Maybe I should upload the given stuff; as soon as I get home I will do that... |
Re: Example Python/GTK Maemo apps + Sources?
Could it be path related?
|
Re: Example Python/GTK Maemo apps + Sources?
Quote:
In the script I use "#!/usr/bin/env python" so I can execute it easier (shorter command) but it is not in the wiki... maybe I should delete that line and see if it is the path that causing issues... I cannot imagine how that could be an issue though... |
Re: Example Python/GTK Maemo apps + Sources?
is it foss? posting your code might lead to easier help
|
Re: Example Python/GTK Maemo apps + Sources?
2 Attachment(s)
As I wrote earlier - and sicelo was right on that - I attached the whole stuff maybe some could give a hint... :)
|
Re: Example Python/GTK Maemo apps + Sources?
Quote:
There are two different dbus sessions. One for user and one for root. Executing from terminal: as user or as root? Try the other one and see if it still works... |
Re: Example Python/GTK Maemo apps + Sources?
Quote:
|
Re: Example Python/GTK Maemo apps + Sources?
I was wondering if you have any booklet, or some offline QT installer, how can I do my apps compiled in python?
|
Re: Example Python/GTK Maemo apps + Sources?
@ justmemory I will give up python is to complicated for me
So here are my hints:
Code:
dsmetool -k /usr/bin/hildon-home Good luck in finishing this, I really would like to see it properly running. |
Re: Example Python/GTK Maemo apps + Sources?
Quote:
For a booklet, about what:confused:, hmm don't know look in our wiki. Offline QT installer you will find it somewhere in the development section search for QtSDK. |
Re: Example Python/GTK Maemo apps + Sources?
Quote:
Quote:
I checked the permissions as well; timing should be OK and everything else should be fine too as the widget works just fine when it is running from terminal as a simple python app. I just cannot figure out why. Soooo... my solution (???) was that I wrote an init.d script and started the python script as a service/daemon. This way it is working as espected and no need for terminal... I do not know whether it is a good solution but it is working for now... So many thanks to everyone... |
Re: Example Python/GTK Maemo apps + Sources?
I have a friend who knows coding and whom I got interested on N900 (I pointed him one good online with all the bells and whistles for 30Eur). He has now suggested for us to do a coding project. I am interested on an automated installer to do all that stuff I need to do after reflashing (removing stuff, installing stuff, editing stuff) and it to work the same way cssu installer is working. Is there a source code for the cssu intaller somewhere?
|
Re: Example Python/GTK Maemo apps + Sources?
|
Re: Example Python/GTK Maemo apps + Sources?
Is it so that microb can't open github pages or am I missing something?
|
Re: Example Python/GTK Maemo apps + Sources?
No, it can't... I'm able to open github on n900 only with opera... Or try it from ED... (time consuming...)
|
All times are GMT. The time now is 23:32. |
vBulletin® Version 3.8.8