Active Topics

 



Notices


Reply
Thread Tools
Posts: 310 | Thanked: 202 times | Joined on Jun 2010 @ Ireland
#1
Go to third post!

The tramps treasure is a little python script that gives you ml of alcohol per unit of currency. Essential for anyone wanting to spend their last fiver wisely. I've only just started looking at coding so it has to run in terminal.

I have it running on the n900 but you have to unzip the file and put it the right folder /home/user. I used filebox.

In xterm.
python trampstreasure.py

Feedback would be welcome, especialy advice on where to start putting a gui together
Attached Files
File Type: zip trampstreasure.py.zip (540 Bytes, 90 views)

Last edited by king Ralphred; 2013-02-27 at 14:26. Reason: typo
 

The Following 4 Users Say Thank You to king Ralphred For This Useful Post:
Posts: 310 | Thanked: 202 times | Joined on Jun 2010 @ Ireland
#2
The best one so far is Devils Bit cider from Tipperary which comes in at 30 ml per euro. Can any one beat that?
 

The Following User Says Thank You to king Ralphred For This Useful Post:
Posts: 310 | Thanked: 202 times | Joined on Jun 2010 @ Ireland
#3
I have attached 3 files. The python script, a .desktop script and an icon.

Place the "tt" file in /usr/bin/
Place the "ttx.desktop" file in /usr/share/applications/hildon/
Place the "beer,png" file in /usr/share/icons/hicolor/295x295/hildon/

I'm not sure if you need the chmod command so if someone could let me know if this works, that would be just splendid.

I tried to look into packaging a .deb but it made my brain hurt.
Attached Files
File Type: zip trampstreasure.zip (47.4 KB, 76 views)

Last edited by king Ralphred; 2013-02-27 at 14:27. Reason: wrong path for "tt"
 

The Following 2 Users Say Thank You to king Ralphred For This Useful Post:
Posts: 310 | Thanked: 202 times | Joined on Jun 2010 @ Ireland
#4
Many thanks to thedead1440 for putting a .deb together for me. It works a treat.

Save to /home/user/MyDocs

In Xterm-

dpkg -i /home/user/MyDocs/trampstreasure_0.0.1_all.deb

If you want, you can replace the "tt" file in /usr/bin/ with the one from the zip file in the 3rd post. The output is a bit tidier is all
Attached Files
File Type: deb trampstreasure_0.0.1_all.deb (48.3 KB, 84 views)

Last edited by king Ralphred; 2013-02-27 at 14:25.
 

The Following 3 Users Say Thank You to king Ralphred For This Useful Post:
Posts: 1,417 | Thanked: 2,619 times | Joined on Jan 2011 @ Touring
#5
Ah yes, definitely coded in Ireland.
 

The Following 2 Users Say Thank You to biketool For This Useful Post:
Posts: 310 | Thanked: 202 times | Joined on Jun 2010 @ Ireland
#6
And now a basic version for Android using app inventor.

https://play.google.com/store/apps/d...ramps_treasure
 
Reply


 
Forum Jump


All times are GMT. The time now is 13:29.