Re: Python bindings based on Phonegap?

2012-06-27 Thread Lester Leong
I'm assuming those tweaks are for backend code. A Phonegap binding
would still be immensely useful because the frontend HTML5/Javascript
code would be reusable across platforms. Not to mention, they could be
re-used even in a server environment as long as the backend is
rewritten. That's still plenty of code reuse versus the standard
PyGTK/PyGame route.

I'm curious to know if anyone has written even a subset of the
Phonegap bindings. For my application, I'm looking for basic things,
mostly having to do with database calls.

On Wed, Jun 27, 2012 at 1:38 AM, John Gilmore  wrote:
>> Does anyone know if there are Python bindings based off the Phonegap
>> API, with similar method calls, etc.?
>>
>> I'm developing an HTML5/Javascript activity that I would like to
>> eventually port to Android and other mobile platforms. Having a set of
>> Phonegap-like Python bindings for Sugar would help considerably.
>
> Sounds like doing a native Linux port of Phonegap would be a useful
> addition, with both X11 and Sugar window interfaces.  Then Phonegap
> apps could, perhaps, work on both classic Linux machines and on OLPCs.
>
> Hmm, it looks to me like Phonegap isn't a "write once, run everywhere"
> kind of thing.  According to the doc, every platform your app targets
> needs tweaks in the app, and/or needs a development tools platform for
> that target.  It's more like classic Unix portability: "how to build
> your app so that you can copy the source to 7 different build
> environments and get it to build and run on each one."
>
>        John
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Python bindings based on Phonegap?

2012-06-26 Thread John Gilmore
> Does anyone know if there are Python bindings based off the Phonegap
> API, with similar method calls, etc.?
> 
> I'm developing an HTML5/Javascript activity that I would like to
> eventually port to Android and other mobile platforms. Having a set of
> Phonegap-like Python bindings for Sugar would help considerably.

Sounds like doing a native Linux port of Phonegap would be a useful
addition, with both X11 and Sugar window interfaces.  Then Phonegap
apps could, perhaps, work on both classic Linux machines and on OLPCs.

Hmm, it looks to me like Phonegap isn't a "write once, run everywhere"
kind of thing.  According to the doc, every platform your app targets
needs tweaks in the app, and/or needs a development tools platform for
that target.  It's more like classic Unix portability: "how to build
your app so that you can copy the source to 7 different build
environments and get it to build and run on each one."

John
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Re: Python bindings based on Phonegap?

2012-06-21 Thread Gary Martin
On 21 Jun 2012, at 20:50, Lester Leong wrote:

> Does anyone know if there are Python bindings based off the Phonegap
> API, with similar method calls, etc.?
> 
> I'm developing an HTML5/Javascript activity that I would like to
> eventually port to Android and other mobile platforms. Having a set of
> Phonegap-like Python bindings for Sugar would help considerably.

Yes, or even a minimal example web based activity that folks could clone and 
extend. FWIW This has come up numerous times over the last few years but I see 
to remember Gecko and hulahoop api compatibility overhead issues stalled most 
work. Now that we've moved to webkit (only just in the latest dev builds) this 
is worth revisiting. FWIW2 Browse [1] and (I think) Help [2] are both ported 
over to webkit, a good place to look to see what the code is like.

Regards,
--Gary

[1] http://git.sugarlabs.org/browse
[2] http://git.sugarlabs.org/help

> Lester
> ___
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel

___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel


Python bindings based on Phonegap?

2012-06-21 Thread Lester Leong
Does anyone know if there are Python bindings based off the Phonegap
API, with similar method calls, etc.?

I'm developing an HTML5/Javascript activity that I would like to
eventually port to Android and other mobile platforms. Having a set of
Phonegap-like Python bindings for Sugar would help considerably.

Lester
___
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel