如何使用Python webbrowser.open()在Background上打开一个窗口

时间:2015-09-02 04:45:34

标签: python python-webbrowser

我有一个运行的程序

`import webbrowser
 path = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
 webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(path))
 chrome = webbrowser.get('chrome')
 chrome.open('chrome://newtab')`

有没有办法可以让这个程序在后台运行并防止窗口弹出?我试过了chrome.open('chrome://newtab', autoraise=False),但程序仍然没有在后台打开窗口。

0 个答案:

没有答案