maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Python for Newbies on Maemo - Google Wave (https://talk.maemo.org/showthread.php?t=35832)

rm42 2009-12-07 19:48

Re: Python for Newbies on Maemo - Google Wave
 
Quote:

Originally Posted by skalogre (Post 415041)
How did not see this earlier? I have wanted to start learning Python... I even grabbed the Windows files last week. Have not done any coding since my days at the University (I don't count HTML as coding, heh) and that was ANSI C, MIPS/68k machine code/assembly so I am very very rusty... Anyone have an invite to spare for me - or some other way I can peruse the docs at least? :)

Send me a PM and we'll try to accommodate you. :)

Dexter1759 2009-12-07 20:06

Re: Python for Newbies on Maemo - Google Wave
 
Hi rm42,

Sorry I didn't read that but properly about the interpreter. Did find Py2exe on my search, which is why I thought I might need to "compile" Python to install it on the N900.

Am I right in thinking that Linux comes with Python installed anyway? (think I read that somewhere) So surely the N900 will have it installed already?

Also, I have some invites (think it's 8) for Wave so if other people run out feel free to PM me too. Share and share a-like!

rm42 2009-12-07 20:13

Re: Python for Newbies on Maemo - Google Wave
 
Since I do not yet have my N900 (Nokia is sabotaging my Dell delivery :P), I am not certain that Python comes pre-installed on the N900 out of the box. My guess is that it isn't. However, I believe you can mark Python as a "dependency" of your program so that it gets installed automatically whenever a user goes to install your app. And as I said, many apps will have Python as a dependency, so by the time they get to install yours, they will probably already have Python. On regular desktop Linux distros Python usually comes already installed.

As for the extra invites you have, please hold on to them. Yes, they will most likely be needed by others wanting to join our wave. Thanks for making them available.

edgedemon 2009-12-07 20:53

Re: Python for Newbies on Maemo - Google Wave
 
Quote:

Originally Posted by rm42 (Post 415134)
Since I do not yet have my N900 (Nokia is sabotaging my Dell delivery :P), I am not certain that Python comes pre-installed on the N900 out of the box. My guess is that it isn't. However, I believe you can mark Python as a "dependency" of your program so that it gets installed automatically whenever a user goes to install your app. And as I said, many apps will have Python as a dependency, so by the time they get to install yours, they will probably already have Python. On regular desktop Linux distros Python usually comes already installed.

As for the extra invites you have, please hold on to them. Yes, they will most likely be needed by others wanting to join our wave. Thanks for making them available.

I have a n900 - if you can tell me how I can let you know if python is installed if it will help?

edit - hang on, I will try the terminal and see what i get back..

edit 2

typing python in the terminal gives me python 2.5.4 (r254:67916)
and I get the >>>

Got that bit from your wave intro :D

WebSamE 2009-12-07 21:03

Re: Python for Newbies on Maemo - Google Wave
 
Hi, Already have a google Wave account - would be keen to get involved. How do I join in?

rm42 2009-12-07 21:38

Re: Python for Newbies on Maemo - Google Wave
 
Quote:

Originally Posted by WebSamE (Post 415267)
Hi, Already have a google Wave account - would be keen to get involved. How do I join in?

Send me a PM. I see that this is your second post. You may have to comment on a few threads before you can send PMs. I think you need about 5 comments.

rm42 2009-12-07 21:39

Re: Python for Newbies on Maemo - Google Wave
 
Quote:

Originally Posted by edgedemon (Post 415240)
I have a n900 - if you can tell me how I can let you know if python is installed if it will help?

edit - hang on, I will try the terminal and see what i get back..

edit 2

typing python in the terminal gives me python 2.5.4 (r254:67916)
and I get the >>>

Got that bit from your wave intro :D

Nice to see that you are well on your way. :D

Dexter1759 2009-12-08 08:44

Re: Python for Newbies on Maemo - Google Wave
 
Hi All,

Thought I'd post this since it helped me understand the "missing link" I mentioned in a previous post.

This bit I was missing was how my Python script would called/ran by an end user, particularly if it's a widget.

This articule was very helpful. Specifically, for widgets and status applets (think that's the correct terminology).

Basically, you create a .desktop file that allows you to "link" your python script widget to the "Add Widget" menu.

I'm sure this info is really obvious and basic to most of you, but I am hoping that if others like me come and search for these things, they'll find this and it'll give them a good start.

khg 2009-12-08 18:43

Re: Python for Newbies on Maemo - Google Wave
 
Hi.

I have my N900, and it didn't have python initially, but I just installed PyGTKEditor, and viola it installed python as a dependency.

Do you have anymore Wave invites? I would love to read this.

rm42 2009-12-08 19:20

Re: Python for Newbies on Maemo - Google Wave
 
Quote:

Originally Posted by khg (Post 417085)
Hi.

I have my N900, and it didn't have python initially, but I just installed PyGTKEditor, and viola it installed python as a dependency.

Do you have anymore Wave invites? I would love to read this.

Yes, we still have some invites. I see this is your first post (unless you are really an old timer trying to pass as a newbie ;)). So, you will need to make a few posts on the forums (about 5) until you are granted the ability to send PMs (personal messages). Once you have that ability, send me a PM with your email address and we will allocate a Google Wave invite to you.


All times are GMT. The time now is 23:41.

vBulletin® Version 3.8.8