import webbrowser
webbrowser.open('http://www.xxx.com')
用谷歌瀏覽器打開
def openUrl(url):
try:
webbrowser.get('chrome').open_new_tab(url)
except Exception as e:
webbrowser.open_new_tab(url)
import webbrowser
webbrowser.open('http://www.xxx.com')
用谷歌瀏覽器打開
def openUrl(url):
try:
webbrowser.get('chrome').open_new_tab(url)
except Exception as e:
webbrowser.open_new_tab(url)
#new_Button是一個新建的按鈕 menu = QMenu(self) menu.addAction(_translate("f_1", "文件")) menu.addAction(_tran