Code

use threads to open browser without locking inkscape
[inkscape.git] / share / extensions / webbrowser_keys.py
1 #!/usr/bin/env python 
2 import webbrowser, threading
3 url = "http://inkscape.org/doc/keys046.html"
5 class VisitWebSiteWithoutLockingInkscape(threading.Thread):
6     def __init__(self, url):
7         self.url = url
8         threading.Thread.__init__ (self)
10     def run(self):       
11         webbrowser.open(self.url)
12         
13 vwswli = VisitWebSiteWithoutLockingInkscape(url)
14 vwswli.start()