David,

Depending on what you need to do, running a python based web server is
actually remarkably easy--there are a bunch of web frameworks that are
each suited to different uses, but one or more is likely to suit your
needs.

That being said, an all-in-the browser app could be a fine option as
well. Look for info on "single page" apps, or " rich Internet apps"
for info.

Note that the only language in browsers is JavaScript , so that's what
you need to use. The exceptions to this are other languages that are
translated to JavaScript. For python, check out pyjamas and brython.

In fact, pyjamas may be just what you need ( short of using JavaScript
directly). If you do want to go the JavaScript route, check out
backbone.js

Good luck!

Chris

On May 9, 2013, at 2:00 AM, David Goldsmith <[email protected]> wrote:

> So I'm writing this GUI app using wxPython when it dawns on me: why don't I 
> write it as a Web app (by which I mean Wikipedia's second definition, namely 
> "[an] application that is coded in a browser-supported programming 
> language...and reliant on a common web browser to render the application 
> executable."  Then I "discover" a basic problem: Web apps don't appear to be 
> able to straightforwardly write to local files (doing so is a central 
> function of the intended app).  I tried the idea of having the Web app post 
> form inputs to a compiled Python executable, which would then format the 
> inputs and write the file, but, as I came to understand it, in order for all 
> this to occur "locally," my app would have to run a local "server" to which 
> the Web app would post and which would "run" the Python executable--too 
> complicated for my purpose!  (Which is to wade slowly into Web app 
> development, not dive right into the deep-end.)  So the "workaround" I'm 
> contemplating now is to have the app create the text--it is meant to be 
> straight ascii, not even unicode--and render it in a browser viewing object, 
> e.g., a frame, tab, or popup, and then require the user to employ the 
> browser's File->Save Page As... menu function to save the result.  So my 
> question is: can anyone point me to an example of a page that uses 
> client-side code (preferably Python, of course) to process html form text 
> inputs into a page which the code then renders in a new browser view object?  
> (Yes, I know I've probably visited thousands of such already and just never 
> registered that that is what they're doing because I've never cared before.)  
> Thanks!
>
> OlyDLG

Reply via email to