python applets?
Thomas Guettler
guettli at thomas-guettler.de
Thu Jun 3 08:09:40 EDT 2004
Am Wed, 02 Jun 2004 16:49:49 -0700 schrieb Russell E. Owen:
>>One thing you can do in Python that you cannot in Java however is embed
>>a user's web browser (such as Internet Explorer or Mozilla) in your
>>Python program. In some cases that is more desirable.
>
> How do you do that?
>
> I've been using the webbrowser module to open help files for my python
> application, but it has several problems. If the user already has their
> browser open in another "desktop" (unix users seem fond of switching
> between lots of desktops), then the help opens there instead of the
> "desktop" that has the current app. Also, I really need to call
> webbrowser in a thread, because it takes forever if the web browser
> isn't already open. (Also, it's not safe to ask for file://...#anchor
> urls; some OSs handle it, others do not. I ended up writing code that
> retries without the anchor.)
There is a module called webbrowser in the
standard library. It opens the default browser.
But it does not embed it into an other GUI.
Regards,
Thomas
More information about the Python-list
mailing list