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)

justmemory 2018-07-02 20:07

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

Originally Posted by peterleinchen (Post 1545949)
Try the other one and see if it still works...

In both cases it is working fine...

d1hacker 2018-07-03 00:01

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?

Halftux 2018-07-03 17:23

Re: Example Python/GTK Maemo apps + Sources?
 
@ justmemory I will give up python is to complicated for me

So here are my hints:
  • check file size from downloaded data sometimes 0kb weatherdata (also some timing problem?)
  • maybe after moving files do a chmod (file permissions changes)
  • check timing download, refresh and parsing
  • check your py script with internet, without internet and switching on internet (I had something like line 167 unknown sleep...but could be my mistake)
  • when modifing the py file restart hildon-home and maybe desktop dont know

Code:

dsmetool -k /usr/bin/hildon-home
dsmetool -t /usr/bin/hildon-home
killall hildon-desktop

And now the most important and valueable advice try to avoid python:D
Good luck in finishing this, I really would like to see it properly running.

Halftux 2018-07-03 17:29

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

Originally Posted by d1hacker (Post 1545953)
I was wondering if you have any booklet, or some offline QT installer, how can I do my apps compiled in python?

It is not necessary compile python files.
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.

justmemory 2018-07-03 18:44

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

Originally Posted by Halftux (Post 1545987)
@ justmemory I will give up python is to complicated for me

Me too... :)

Quote:

Originally Posted by Halftux (Post 1545987)
So here are my hints:
  • check file size from downloaded data sometimes 0kb weatherdata (also some timing problem?)
  • maybe after moving files do a chmod (file permissions changes)
  • check timing download, refresh and parsing
  • check your py script with internet, without internet and switching on internet (I had something like line 167 unknown sleep...but could be my mistake)
  • when modifing the py file restart hildon-home and maybe desktop dont know

Code:

dsmetool -k /usr/bin/hildon-home
dsmetool -t /usr/bin/hildon-home
killall hildon-desktop

And now the most important and valueable advice try to avoid python:D
Good luck in finishing this, I really would like to see it properly running.

So many thanks for trying this! I think you were on the right path as I noticed that there is something going wrong around disconnect and connect again to wireless network; even if the script refreshes the weather data is fails to be shown (only a black box) and I have to kill hildon-home and save /usr/share/applications/hildon-home/my_widget.desktop file to get it to work again...
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...

Maemish 2019-09-02 05:52

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?

justmemory 2019-09-02 11:52

Re: Example Python/GTK Maemo apps + Sources?
 
Maemish,

CSSU installer on the wiki page only adds the community repo and runs the community-ssu-enabler (if I understand the method well, but please correct me). The source code of the latter is here.

Maemish 2019-09-02 11:56

Re: Example Python/GTK Maemo apps + Sources?
 
Is it so that microb can't open github pages or am I missing something?

justmemory 2019-09-02 12:07

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 12:13.

vBulletin® Version 3.8.8