summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-01-23 15:49:34 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-01-23 15:49:34 (GMT)
commitcfa4096618650f6317c8872b8cbe7daaf90ccb03 (patch)
treef830fbdc4862b4bcefd19e20fdde5b65c26c244b /Lib/webbrowser.py
parent2dd4276559658e06eaf8b623c2c47373f1f50688 (diff)
downloadcpython-cfa4096618650f6317c8872b8cbe7daaf90ccb03.zip
cpython-cfa4096618650f6317c8872b8cbe7daaf90ccb03.tar.gz
cpython-cfa4096618650f6317c8872b8cbe7daaf90ccb03.tar.bz2
Fixed autoraise glitches.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index fb4d9a6..0ad20d3 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -75,7 +75,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
def __init__(self, cmd):
self.command = cmd
- def open(self, url, new=0):
+ def open(self, url, new=0, autoraise=1):
os.system(self.command % url)
def open_new(self, url): # Deprecated. May be removed in 2.1.
@@ -151,7 +151,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
rc = os.system(cmd)
return not rc
- def open(self, url, new=1):
+ def open(self, url, new=1, autoraise=1):
# XXX Currently I know no way to prevent KFM from opening a new win.
self._remote("openURL %s" % url)
@@ -199,7 +199,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
s.close()
return 1
- def open(self, url, new=0):
+ def open(self, url, new=0, autoraise=1):
if new:
self._remote("LOADNEW " + url)
else:
@@ -220,7 +220,7 @@ if sys.platform[:3] == "win":
_tryorder = ("netscape", "windows-default")
class WindowsDefault:
- def open(self, url, new=0):
+ def open(self, url, new=0, autoraise=1):
os.startfile(url)
def open_new(self, url): # Deprecated. May be removed in 2.1.
@@ -238,7 +238,7 @@ except ImportError:
pass
else:
class InternetConfig:
- def open(self, url, new=0):
+ def open(self, url, new=0, autoraise=1):
ic.launchurl(url)
def open_new(self, url): # Deprecated. May be removed in 2.1.