wxPython app in web browser

Is is possible to convert a wxPython application so that it runs in a web browser?

Thank you.

Tom Michel
Sahuarita, AZ

Tom Michel wrote:

Is is possible to convert a wxPython application so that it runs in a web browser?

Well, anything is possible, with enough work, but the answer you're looking for is no.

There has been talk of making a web-browser plugin that could run wxPython, but no one has done it.

Short of that, you are talking about converting a stand-alone GUI app to a web app, and the paradigms are so different that it's next to impossible to do automatically.

However, there are some pretty nifty AJAX frameworks that might help, such as the Tibco General Interface:

http://www.tibco.com/devnet/

or QooXDoo:

http://qooxdoo.org/

Note: I haven't used either of these, but am hoping to some day. There are lots of others, as well.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Werner F. Bruhin wrote:

Christopher Barker wrote:

However, there are some pretty nifty AJAX frameworks that might help, http://www.tibco.com/devnet/
http://qooxdoo.org/

What about:
http://www.djangoproject.com/

Only a tiny bit. We ended up going with Pylons:

http://pylonshq.com/

There is also TurboGears:

http://turbogears.org/

And many others. The world is not wanting for options in Python web frameworks.

However, these are all more "traditional" web frameworks. I think they can use some AJAX, but I pointed the OP to the ones above because they seem to be using a very different paradigm: using JavaScript to essentially write a traditional GUI app in a browser. IIUC, they only really use the server as a supplier of data, etc. More like a traditional "custom client". It looks to me like an easier way to make something that behaves much like a desktop app.

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Hi Kevin,

Kevin Ollivier wrote:

..

What about:
http://www.djangoproject.com/

Has anyone tried it?

I've tried it, and though it was a bit of a challenge to get it setup on my server (had to play with a couple different approaches before I found one that fit my server config), the framework itself is really nice to use. You basically create a data model and a web template, then it sets up HTML views, editing forms and the like for you, which you can customize if you want. (But you don't have to.) The clean separation of data model and view actually means you could use the ORM data model as a base for both GUI and web versions of your app.

BTW, as a side note, on the #wxWidgets IRC channel, myself and another person who uses Django were speculating about having Django views that spit out wxPython GUIs rather than HTML forms, and then you could just pick the type of view (desktop | web) on startup. If Dabo or some other tool already has a sort of "data type->GUI control" mapping logic, it could further simplify creating this sort of tool.

Thanks for the info.
Werner

···

Definitely the options are growing and there is no clear winner. Also
very promising is:
http://dojotoolkit.org/

which just releases a very impressive 0.9 release. They are even working
on some opengl ajax powered engine called dojox.gfx3d. At a certain
point it might be interesting to start porting a certain part of
wxWidgets/wxPython to a web framework. But that will be a lot of work
and maybe the time is not right yet. This might soon change when
projects such as Google Gears get mature. If Dabo will support more than
one gui platform besides wxPython, I hope they choose a web based one,
rather than a desktop based one such as pyqt.

Stani

Christopher Barker schreef:

···

Tom Michel wrote:

Is is possible to convert a wxPython application so that it runs in a
web browser?

Well, anything is possible, with enough work, but the answer you're
looking for is no.

There has been talk of making a web-browser plugin that could run
wxPython, but no one has done it.

Short of that, you are talking about converting a stand-alone GUI app to
a web app, and the paradigms are so different that it's next to
impossible to do automatically.

However, there are some pretty nifty AJAX frameworks that might help,
such as the Tibco General Interface:

http://www.tibco.com/devnet/

or QooXDoo:

http://qooxdoo.org/

Note: I haven't used either of these, but am hoping to some day. There
are lots of others, as well.

-Chris