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