Message101725
| Author |
joncwchao |
| Recipients |
joncwchao |
| Date |
2010年03月25日.18:32:39 |
| SpamBayes Score |
0.0028775316 |
| Marked as misclassified |
No |
| Message-id |
<1269541962.46.0.762619344208.issue8232@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
webbrowser.open(), webbrowser.open_new(), and webbrowser.open_new_tab() all do the exact same thing, regardless of the flags that I set. In Firefox, open('www.google.com', new=0), open_new('www.google.com'), and open_new_tab('www.google.com') all open either three new www.google.com tabs (if "Open new windows in a new tab instead" is selected in FF options) or three new www.google.com windows (if "Open new windows in a new tab instead" is not selected in FF options). In Internet Explorer, three new www.google.com tabs are created.
The issue exhibits itself the same way whether or not I have the browser open before running the script.
Environment was a Windows Vista 32-bit machine, running Python 3.1.2.
Example script reads:
import webbrowser
import time
ff = webbrowser.get('firefox')
ff.open('www.google.com', new=0)
time.sleep(3)
ff.open_new('www.google.com')
time.sleep(3)
ff.open_new_tab('www.google.com') |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年03月25日 18:32:42 | joncwchao | set | recipients:
+ joncwchao |
| 2010年03月25日 18:32:42 | joncwchao | set | messageid: <1269541962.46.0.762619344208.issue8232@psf.upfronthosting.co.za> |
| 2010年03月25日 18:32:39 | joncwchao | link | issue8232 messages |
| 2010年03月25日 18:32:39 | joncwchao | create |
|