docutil/dochtml.py
changeset 1734 750eeb7230a1
parent 1732 94ffe74e6895
child 1735 c02818d7e29f
equal deleted inserted replaced
1733:dea107dce0c4 1734:750eeb7230a1
    92             url = event.linkinfo[0]
    92             url = event.linkinfo[0]
    93             try:
    93             try:
    94                 if wx.Platform == '__WXMSW__':
    94                 if wx.Platform == '__WXMSW__':
    95                     import webbrowser
    95                     import webbrowser
    96                     webbrowser.open(url)
    96                     webbrowser.open(url)
    97                 elif subprocess.call("firefox %s"%url, shell=True) != 0:
    97                 elif subprocess.call("firefox %s" % url, shell=True) != 0:
    98                     wx.MessageBox("""Firefox browser not found.\nPlease point your browser at :\n%s""" % url)
    98                     wx.MessageBox("""Firefox browser not found.\nPlease point your browser at :\n%s""" % url)
    99             except ImportError:
    99             except ImportError:
   100                 wx.MessageBox('Please point your browser at: %s' % url)
   100                 wx.MessageBox('Please point your browser at: %s' % url)