Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
cfa40966
Kaydet (Commit)
cfa40966
authored
Ock 23, 2001
tarafından
Eric S. Raymond
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed autoraise glitches.
üst
2dd42765
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
webbrowser.py
Lib/webbrowser.py
+5
-5
No files found.
Lib/webbrowser.py
Dosyayı görüntüle @
cfa40966
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment