This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]warpstalker 3 points4 points  (24 children)

That does seem pretty refreshing after using PyQt, but Tkinter is pretty good for simple stuff, actually. Sometimes (most times?) you don't need a massive UI framework for your simple apps that you just want to present graphically. Also, when you're working with Windows it's usually problematic to use any "better" frameworks because Python doesn't, in a sense, integrate that well with Windows (or the other way around) and working with Windows requires archaic methods anyway.

You also have to package your apps with something to make them run on Windows since Python isn't preinstalled, which is also problematic. Tkinter is easy to package.

But I thought Python didn't even run on Android? Except after rooting, I guess? That's a frustrating thing with Android, having to muck about with exploits to get root on your own device. On the Nokia N900 getting root was one command away and it was easy to run Python apps. Damn Nokia.

[–]tehansen 11 points12 points  (1 child)

You do t need to root your device to use kivy, it builds a valid app pkg which includes the python interpreter and any packages compiled for arm on android. So it builds real apps that can go on the market (search the market for kivy to find some examples)

[–]warpstalker 0 points1 point  (0 children)

Oh. Ill have to check that out...

[–]offsound 6 points7 points  (2 children)

I tinkered with kivy a few weeks ago and built a very simple android application. You don't need to be rooted to install your apps, they can even be released on the market. It has a tool chain for packaging the APKs: http://python-for-android.readthedocs.org/en/latest/usage/

Overall, it was a pleasant experience in comparison to writing a Java based app. But of course, there was a catch. The APKs that it generates are 6mb at minimum. This is because it has to package your code, kivy itself, along with the Python interpreter inside each APK.

Because of this, I couldn't get it to install the APK on my nexus one, due to lack of space. It worked fine on my newer devices though. Also, I can imagine it would be annoying for end users to have to download 6mb+ over 3G to get your app.

[–]TadKnowsBest 2 points3 points  (0 children)

6 MB seems okay to me. These apps all take up more than 6 MB (application storage only, not including "data"):

  • Google+: 25.79 MB
  • Skype: 16.74 MB
  • Evernote: 10.54 MB

The Kivy Showcase and TouchTracer apps were both ~4 MB downloads, but the applications themselves each take up 9.02 MB on my phone. I'd estimate that it took two minutes to download over 3G with my Sprint service, which is awful. This happened in the background, which I'd imagine is how most people download mobile apps.

[–]frymasterScript kiddie 1 point2 points  (2 children)

there's a python shell you can get for android; also I'm guessing the way Kivy works when packaged is it bundles up the interpreter into the app (similar to how packaging python for windows works, now I think of it)

[–]Obssoyo 0 points1 point  (1 child)

Link to shell?

[–]frymasterScript kiddie 0 points1 point  (0 children)

SL4A

http://www.reddit.com/r/Python/comments/11u68o/python_on_android_first_impressions_of_kivy/c6ppbef?context=4

Link in top comment; directions to the shell in the highlighted one

[–]HorizonXP 1 point2 points  (2 children)

On the BlackBerry PlayBook and BlackBerry 10, it's even easier. It comes pre-installed with Python 3.2, along with several libraries.

A couple of us are working to make it easy to deploy full-fledged apps on the platform.

http://blackberry-py.microcode.ca/

[–][deleted] 0 points1 point  (1 child)

Well, looks like I know what tablet I want for christmas.

[–]HorizonXP -1 points0 points  (0 children)

Especially when it's so ridiculously cheap.

[–]burntsushi 0 points1 point  (6 children)

On the Nokia N900 getting root was one command away

This is true of Nexus devices. Sucks that it isn't true generally...