Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
23929f28
Commit
23929f28
authored
Jan 20, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to resolve the remaining webbrowser issues (backgrounding, local urls)
parent
777f1083
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
206 additions
and
112 deletions
+206
-112
Doc/lib/libwebbrowser.tex
Doc/lib/libwebbrowser.tex
+10
-9
Lib/webbrowser.py
Lib/webbrowser.py
+196
-103
No files found.
Doc/lib/libwebbrowser.tex
View file @
23929f28
...
...
@@ -19,9 +19,9 @@ process will block until the user exits the browser.
If the environment variable
\envvar
{
BROWSER
}
exists, it
is interpreted to override the platform default list of browsers, as a
os.pathsep-separated list of browsers to try in order. When the value of
a list part contains the string
\code
{
\%
s
}
, then it is
interpreted as
a literal browser command line to be used with the argument URL
substituted for
the
\code
{
\%
s
}
; if the part does not contain
a list part contains the string
\code
{
\%
s
}
, then it is
interpreted as
a literal browser command line to be used with the argument URL
substituted for
\code
{
\%
s
}
; if the part does not contain
\code
{
\%
s
}
, it is simply interpreted as the name of the browser to
launch.
...
...
@@ -52,7 +52,7 @@ The following functions are defined:
a new browser page ("tab") is opened if possible. If
\var
{
autoraise
}
is
true, the window is raised if possible (note that under many window
managers this will occur regardless of the setting of this variable).
\versionchanged
[\var{new} can now be 2]
{
2.5
}
\end{funcdesc}
\begin{funcdesc}
{
open
_
new
}{
url
}
...
...
@@ -96,16 +96,17 @@ in this module.
\lineiii
{
'netscape'
}{
\class
{
Mozilla('netscape')
}}{}
\lineiii
{
'galeon'
}{
\class
{
Galeon('galeon')
}}{}
\lineiii
{
'epiphany'
}{
\class
{
Galeon('epiphany')
}}{}
\lineiii
{
'skipstone'
}{
\class
{
GenericBrowser('skipstone
\%
s
\&
')
}}{}
\lineiii
{
'skipstone'
}{
\class
{
BackgroundBrowser('skipstone')
}}{}
\lineiii
{
'kfmclient'
}{
\class
{
Konqueror()
}}{
(1)
}
\lineiii
{
'konqueror'
}{
\class
{
Konqueror()
}}{
(1)
}
\lineiii
{
'kfm'
}{
\class
{
Konqueror()
}}{
(1)
}
\lineiii
{
'mosaic'
}{
\class
{
GenericBrowser('mosaic
\%
s
\&
')
}}{}
\lineiii
{
'mosaic'
}{
\class
{
BackgroundBrowser('mosaic
')
}}{}
\lineiii
{
'opera'
}{
\class
{
Opera()
}}{}
\lineiii
{
'grail'
}{
\class
{
Grail()
}}{}
\lineiii
{
'links'
}{
\class
{
GenericBrowser('links
\%
s
')
}}{}
\lineiii
{
'links'
}{
\class
{
GenericBrowser('links')
}}{}
\lineiii
{
'elinks'
}{
\class
{
Elinks('elinks')
}}{}
\lineiii
{
'lynx'
}{
\class
{
GenericBrowser('lynx
\%
s
')
}}{}
\lineiii
{
'w3m'
}{
\class
{
GenericBrowser('w3m
\%
s
')
}}{}
\lineiii
{
'lynx'
}{
\class
{
GenericBrowser('lynx')
}}{}
\lineiii
{
'w3m'
}{
\class
{
GenericBrowser('w3m')
}}{}
\lineiii
{
'windows-default'
}{
\class
{
WindowsDefault
}}{
(2)
}
\lineiii
{
'internet-config'
}{
\class
{
InternetConfig
}}{
(3)
}
\lineiii
{
'macosx'
}{
\class
{
MacOSX('default')
}}{
(4)
}
...
...
Lib/webbrowser.py
View file @
23929f28
This diff is collapsed.
Click to expand it.
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