How to launch a browser window

Cliff Wells LogiplexSoftware at earthlink.net
Tue Dec 31 16:15:31 EST 2002


On Mon, 2002-12-30 at 18:06, Cameron Laird wrote:
> In article <mailman.1041276377.23112.python-list at python.org>,
> Cliff Wells  <clifford.wells at attbi.com> wrote:
> >On Mon, 2002-12-30 at 06:31, A wrote:
> >> Hi all,
> >> Can you let me know please how I can
> >>  launch, from Python, a web browser window without any toolbars and menus?
> >
> >Without any toolbars and menus?  *If* your browser supports that, then
> >you could use os.system to launch the browser with the appropriate
> >command line options.  Alternatively, you could use something like the
> >wxHtmlWindow from wxPython, but it isn't a full-fledged browser and
> >won't display many sites correctly.
> 			.
> 			.
> 			.
> My summary:  it's possible, in principal, but 
> involves rather sordid intimacy with the too-
> poorly-documented details of individual
> browsers.  There are experts in such matters.
> comp.lang.python isn't a particularly likely
> place to find them.

It might also be possible to use something like win32com to embed IE in
a minimal wxPython application.  There's something like this in the
wxPython demo (I can't run it myself as I don't have Windows).  It's in
the demo under "Objects using an external library->ActiveXWrapper_IE". 
Of course this is Win32 specific, but that might not be an issue for the
OP.

-- 
Cliff Wells, Software Engineer
Logiplex Corporation (www.logiplex.net)
(503) 978-6726 x308  (800) 735-0555 x308





More information about the Python-list mailing list