Notices


Reply
Thread Tools
andrewfblack's Avatar
Posts: 1,656 | Thanked: 1,196 times | Joined on Apr 2008 @ Alabama, USA
#11
Originally Posted by rambo View Post
As you see doing stuff like this is really easy in Python.
Thanks, I'll tell you what I'll write desktop file, make icon, and even packge it in deb and source for upload to extras. I know how to do those things. I would love to learn Python but I spend most of my free time designing Maemo Themes. I'm working on 5 right now and just don't have time to learn python. Like I said thank for this I can't wait to see what you can do with log.
__________________
Home Page - Preenv Wiki

**All Posts are made as a Community Member and not as a Super Moderator of this site.
 

The Following User Says Thank You to andrewfblack For This Useful Post:
andrewfblack's Avatar
Posts: 1,656 | Thanked: 1,196 times | Joined on Apr 2008 @ Alabama, USA
#12
Originally Posted by rambo View Post
Trivial calculator attached, copy to /home/user/wwcalc.py them via terminal run following command:

"chmod a+c wwcalc.py"

whenever you want to use it via terminal run

"./wwcalc.py"

Adding .desktop file, icon and debian packaging is part of the tedious stuff I don't want to think about now.

However I already started thinking of the log data model etc so it may be that I have to write some more code soonish (say weekend) just to get it out of my system.

Edit: and if it complains something like "cannot import" then install PyGTKEditor from extras, that will get you all the dependencies you need.

wouldn't let me chmod a+c wwcalc.py
__________________
Home Page - Preenv Wiki

**All Posts are made as a Community Member and not as a Super Moderator of this site.
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#13
Originally Posted by andrewfblack View Post
wouldn't let me chmod a+c wwcalc.py
you can only chmod in /opt. Cant chmod in Mydocs as thats fat 32.

you can just run from the terminal
__________________
N900_Email_Options Wiki Page
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#14
Originally Posted by andrewfblack View Post
wouldn't let me chmod a+c wwcalc.py
chmod a+x wwcalc.py
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#15
Originally Posted by qwerty12 View Post
chmod a+x wwcalc.py
Yep, sorry for the typo, I'll edit the original post.

Since I could hardly sleep last night thinking of data models etc we need a project name, how about "maeCalories" ?
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#16
And we have a project: https://garage.maemo.org/projects/maecalories/

Request access so you can add all the packaging stuff directly to the repo.
 

The Following User Says Thank You to rambo For This Useful Post:
andrewfblack's Avatar
Posts: 1,656 | Thanked: 1,196 times | Joined on Apr 2008 @ Alabama, USA
#17
not sure if this is something I've done wrong but not opening and I'm getting an error see screenshot.
Attached Images
 
__________________
Home Page - Preenv Wiki

**All Posts are made as a Community Member and not as a Super Moderator of this site.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#18
Originally Posted by andrewfblack View Post
not sure if this is something I've done wrong but not opening and I'm getting an error see screenshot.
Run it as "user", not root.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
andrewfblack's Avatar
Posts: 1,656 | Thanked: 1,196 times | Joined on Apr 2008 @ Alabama, USA
#19
Originally Posted by qwerty12 View Post
Run it as "user", not root.
forgot I was still in root. Working good now.
__________________
Home Page - Preenv Wiki

**All Posts are made as a Community Member and not as a Super Moderator of this site.
 
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#20
I have done some work on packaging as well, see the SVN repo.

(right now nothing yet actually requires python-midgard2 so if you want to build a package with just the trivial calculator remove that from dependencies and installing will pull less unneccessary stuff...)
 
Reply


 
Forum Jump


All times are GMT. The time now is 10:30.