On Sun, Apr 10, 2005 at 03:44:38PM -0700, Paul G. Allen wrote:

> I like this idea and will mark this post so I can look into the links 
> later. Embedding a browser with the app. sounds like a better solution than 
> installing Apache with the app. (even though a standard Apache install is 
> as easy as many other applications).

Bruce Eckel wrote an article about this

http://mindview.net/WebLog/log-0045

With Python's webbrowser module and twisted this is really easy:

  # start the server with my root page
  reactor.listenTCP(8080, appserver.NevowSite(RootPage()))
  # open the default web browser after the server has started
  reactor.callWhenRunning(webbrowser.open, "http://localhost:8080";)
  reactor.run() 
  # we'll call reactor.stop() when the user clicks the 'Quit' link.
  
The user never needs be root to install or use this.

Dave
-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to