Using browser as interface to python app
Bill Bell
bill-bell at bill-bell.hamilton.on.ca
Sun Nov 11 15:05:00 EST 2001
sandskyfly at hotmail.com (Sandy Norton) wrote, in part:
> I'm simply trying to use the browser as an interface to a small python
> program that retrieves and parses webpages and then publishes the
> results in an html page. I would like for example for the user to be
> able to configure the app via the browser (by selecting checkboxes and
> whatnot) without having to use a command-line menu or a full blown GUI
> such as wxPython or Tkinter.
Not a problem for a Windows-only app: just convert what you have
into an "HTA". Scott Roberts: "An HTML Application (HTA) is a full-
fledged Windows application that you can create by using only
DHTML and script ... it appears to your users to be a normal
Windows application ... unlike a web page, an HTA is trusted."
("Programming Microsoft Internet Explorer 5", MS Press)
Further, when you install the Activestate distribution of Python, as a
bonus you receive the ability to use Python as a (Windows)
scripting language. That is, you can include Python code in HTML
'script' elements.
When you need to display your results just launch IE itself with the
page you've created.
What more could a person want?
Well, in your case, cross-platform functionality. :o) This is where I
draw a blank.
Bill
"It is the time that you have wasted for your rose that makes your rose so important."--St-Exupery
More information about the Python-list
mailing list