diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2008-01-18 03:52:48 +0000 |
|---|---|---|
| committer | jucablues <jucablues@users.sourceforge.net> | 2008-01-18 03:52:48 +0000 |
| commit | fa63d3a53cec8d89516f2b3520cf54cd281ef8aa (patch) | |
| tree | cc2cfed1ae492e732646ec1a9c1fcd2d0622b5e8 /share/extensions/webbrowser_commandline.py | |
| parent | added "Ask Us a Question" to the Help menu linking to http://answers.launchpa... (diff) | |
| download | inkscape-fa63d3a53cec8d89516f2b3520cf54cd281ef8aa.tar.gz inkscape-fa63d3a53cec8d89516f2b3520cf54cd281ef8aa.zip | |
use threads to open browser without locking inkscape
(bzr r4547)
Diffstat (limited to 'share/extensions/webbrowser_commandline.py')
| -rwxr-xr-x | share/extensions/webbrowser_commandline.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/share/extensions/webbrowser_commandline.py b/share/extensions/webbrowser_commandline.py index 5f91e4372..33bc4b1df 100755 --- a/share/extensions/webbrowser_commandline.py +++ b/share/extensions/webbrowser_commandline.py @@ -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() |
