Code

use threads to open browser without locking inkscape
authorjucablues <jucablues@users.sourceforge.net>
Fri, 18 Jan 2008 03:52:48 +0000 (03:52 +0000)
committerjucablues <jucablues@users.sourceforge.net>
Fri, 18 Jan 2008 03:52:48 +0000 (03:52 +0000)
share/extensions/webbrowser_askaquestion.py
share/extensions/webbrowser_commandline.py
share/extensions/webbrowser_faq.py
share/extensions/webbrowser_keys.py
share/extensions/webbrowser_manual.py
share/extensions/webbrowser_relnotes.py
share/extensions/webbrowser_reportabug.py
share/extensions/webbrowser_svgspec.py

index 7af6b125fcc1642fed201296787a89da9145ff93..13bdf6eeef30909066831f8d751a0391a41b4fa0 100644 (file)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://answers.launchpad.net/inkscape/+addquestion")
+import webbrowser, threading
+url = "http://answers.launchpad.net/inkscape/+addquestion"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index 5f91e43724fd3d062f621767fd350996378188b5..33bc4b1df94557fb97cf9fb3ac00e4365b62503e 100755 (executable)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://inkscape.org/doc/inkscape-man.html")
+import webbrowser, threading
+url = "http://inkscape.org/doc/inkscape-man.html"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index fb5967c6bb26558a831820930c0ae84899d96867..58e3164fbbc3501f941f912ef82325fe23d2ceb2 100755 (executable)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://wiki.inkscape.org/wiki/index.php/FAQ")
+import webbrowser, threading
+url = "http://wiki.inkscape.org/wiki/index.php/FAQ"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index f93024793c9cd621669b2a36341329d51537dc3d..1b2512663287a3240e22d788236950f8a93011a8 100755 (executable)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://inkscape.org/doc/keys046.html")
+import webbrowser, threading
+url = "http://inkscape.org/doc/keys046.html"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index daa2e149e6a9a4443800b836e012923917dc52b7..8bc374b97d5646a3d6a2fed84afd83bc0e591e73 100755 (executable)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php")
+import webbrowser, threading
+url = "http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.php"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index 8ce07ec21adfd0efd2efe8879ca34c479aa17606..a479323972081146d3b97b46bc86ced06189ddcf 100755 (executable)
@@ -1,3 +1,14 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://wiki.inkscape.org/wiki/index.php/ReleaseNotes046")
+import webbrowser, threading
+url = "http://wiki.inkscape.org/wiki/index.php/ReleaseNotes046"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
index cec55a435f4ddc6b60453df4bf4e23be5e00a576..3fb01a753feba177453e985d3ffcd379ebcc1232 100755 (executable)
@@ -1,3 +1,15 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://inkscape.org/report_bugs.php")
+import webbrowser, threading
+url = "http://inkscape.org/report_bugs.php"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
+
index 9ea131e4bd5b2d5022968fef15f61191407add8b..b523eada816270b498fd26ecff2273ce5b2fad64 100755 (executable)
@@ -1,3 +1,15 @@
 #!/usr/bin/env python 
-import webbrowser
-webbrowser.open("http://www.w3.org/TR/SVG11/")
+import webbrowser, threading
+url = "http://www.w3.org/TR/SVG11/"
+
+class VisitWebSiteWithoutLockingInkscape(threading.Thread):
+    def __init__(self, url):
+        self.url = url
+        threading.Thread.__init__ (self)
+
+    def run(self):       
+        webbrowser.open(self.url)
+        
+vwswli = VisitWebSiteWithoutLockingInkscape(url)
+vwswli.start()
+