home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2011 November
/
CHIP_2011_11.iso
/
Programy
/
Narzedzia
/
Inkscape
/
Inkscape-0.48.2-1-win32.exe
/
share
/
extensions
/
launch_webbrowser.py
< prev
next >
Wrap
Text File
|
2011-07-08
|
713b
|
22 lines
#!/usr/bin/env python
import webbrowser, threading
from optparse import OptionParser
class VisitWebSiteWithoutLockingInkscape(threading.Thread):
def __init__(self):
threading.Thread.__init__ (self)
parser = OptionParser()
parser.add_option("-u", "--url", action="store", type="string",
default="http://www.inkscape.org/",
dest="url", help="The URL to open in web browser")
(self.options, args) = parser.parse_args()
def run(self):
webbrowser.open(self.options.url)
vwswli = VisitWebSiteWithoutLockingInkscape()
vwswli.start()
# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99