use threading again for launching browser so it doesnt lock up in python2.4
This commit is contained in:
parent
86856b44de
commit
1a85622137
|
@ -132,8 +132,15 @@ def open_file(path):
|
||||||
def open_url_in_browser(url):
|
def open_url_in_browser(url):
|
||||||
"""Opens link in the desktop's default browser"""
|
"""Opens link in the desktop's default browser"""
|
||||||
def start_browser():
|
def start_browser():
|
||||||
|
import threading
|
||||||
import webbrowser
|
import webbrowser
|
||||||
webbrowser.open(url)
|
class BrowserThread(threading.Thread):
|
||||||
|
def __init__(self, url):
|
||||||
|
threading.Thread.__init__(self)
|
||||||
|
self.url = url
|
||||||
|
def run(self):
|
||||||
|
webbrowser.open(self.url)
|
||||||
|
BrowserThread(url).start()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
|
|
Loading…
Reference in New Issue