Code

Translations. French translation minor update.
[inkscape.git] / share / extensions / launch_webbrowser.py
1 #!/usr/bin/env python
2 import webbrowser, threading
3 from optparse import OptionParser
5 class VisitWebSiteWithoutLockingInkscape(threading.Thread):
6     def __init__(self):
7         threading.Thread.__init__ (self)
8         parser = OptionParser()
9         parser.add_option("-u", "--url", action="store", type="string",
10                           default="http://www.inkscape.org/",
11                           dest="url", help="The URL to open in web browser")
12         (self.options, args) = parser.parse_args()
14     def run(self):
15         webbrowser.open(self.options.url)
17 vwswli = VisitWebSiteWithoutLockingInkscape()
18 vwswli.start()
21 # vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99