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 02:04

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

Originally Posted by Texrat (Post 413763)
This will be EXTREMELY useful!!!

Any help will be appreciated. :D

Texrat 2009-12-07 02:14

Re: Python for Newbies on Maemo - Google Wave
 
I'm just now digging into Python... may take me a while...

rm42 2009-12-07 02:24

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

Originally Posted by Texrat (Post 413770)
I'm just now digging into Python... may take me a while...

Are you already in the Python for Newbies on Maemo - Google Wave?

Texrat 2009-12-07 02:27

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

Originally Posted by rm42 (Post 413776)
Are you already in the Python for Newbies on Maemo - Google Wave?

Nope, I just started reading a book. :D

rm42 2009-12-07 02:31

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

Originally Posted by Texrat (Post 413778)
Nope, I just started reading a book. :D

Well you are welcome to join. I would love to hear your opinion. If you are interested, send me a PM.

rm42 2009-12-07 14:37

Re: Python for Newbies on Maemo - Google Wave
 
A tip for all those using this wave: Performance of the Wave is incredibly better on Chrome. Must be those supper dupper javascript optimizations. ;)

Dexter1759 2009-12-07 18:30

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

This may be another stupid question, but I've read that Python runs with an "Interpreter" so it doesn't need compiling. Great, I can write something click Run (or Execute or whatever) and test my code straight away. But I'm missing a link somewhere, how does it work for the end user?

e.g. I could write a windows App in VB, and compile it to an exe (that either runs standalone or installs an App)

If I write an app or widget for the N900, I'd not expect a user to know how to run the script. So how does it get compiled and added to the app menu/widget menu/etc?

Sorry again if this seems a really silly question, but I've googled and must be googling using hte wrong terms or something because I can't find anything that explains that final step.

Many thanks in advance for any replies.

rm42 2009-12-07 19:10

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

Originally Posted by Dexter1759 (Post 414932)
Hi All,

This may be another stupid question, but I've read that Python runs with an "Interpreter" so it doesn't need compiling. Great, I can write something click Run (or Execute or whatever) and test my code straight away. But I'm missing a link somewhere, how does it work for the end user?

e.g. I could write a windows App in VB, and compile it to an exe (that either runs standalone or installs an App)

If I write an app or widget for the N900, I'd not expect a user to know how to run the script. So how does it get compiled and added to the app menu/widget menu/etc?

Sorry again if this seems a really silly question, but I've googled and must be googling using hte wrong terms or something because I can't find anything that explains that final step.

Many thanks in advance for any replies.

From the wave:
"The interpreter must, either be installed on the computer that needs to run the Python program, or the Python program must be packaged in conjunction with the interpreter so that it can be run by computers without Python."

So, in the case of the N900, users of your app will need to install Python on their device. That shouldn't be a problem since there are surely going to be many other apps that require Python.

On Windows, I have used a package called Py2exe to create standalone Python programs. What it does is package the interpreter with your app so that end users don't have to bother installing Python. If you want to learn more about it see here:

http://www.py2exe.org/

But, again, for the N900 that should not be needed.

As for adding your app to the applications menu, I haven't gotten there yet, but that should not be too hard to do.

edgedemon 2009-12-07 19:29

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

Originally Posted by 412b (Post 408744)
Hmmm... The point of that wiki is not clear and obvious for me... There's nice tutorial and documentation on official Python site, there's 'Dive into Python', PythonInfo Wiki, PythonOnMaemo (there are really good examples and links to hildon-specific bindings, documentation etc.). So what's the point of making one more? Only if you want to get together all the information from those resources.
Remember: 'batteries included' ;)

I agree with you in that there is alot of stuff out there, but from a noobs point of view - its not that friendly, people who can program often forget how alien the concept was to begin with so overlook alot of methodology that they think is so obvious it doesn't need explaining..
It never hurts to re-invent the wheel sometimes, if only for comparison purposes...

skalogre 2009-12-07 19:36

Re: Python for Newbies on Maemo - Google Wave
 
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? :)


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

vBulletin® Version 3.8.8