jEdit Community - Resources for users of the jEdit Text Editor
jython - open docs in webBrowser?
Submitted by pixeldroid on Monday, 26 July, 2010 - 12:58
I'm trying to figure out how to open html docs in a web browser using jython, but I'm not able to get the webbrowser to load.
I've tried the following:

import webbrowser
Error:
File "C:\Documents and Settings\Administrator\.jedit\macros
\MayaHelp.py", line 3, in ?
ImportError: no module named webbrowser
========================================
from org.gjt.sp.jedit import webBrowser
Which is found using autocompletion but nonetheless throws this error:
ImportError: cannot import name webBrowser
========================================
I also tried:
from org.gjt.sp.jedit import browser
which doesn't throw an import error, but it doesn't have 'open',
'openURL', or 'open_new_tab' attributes, so I assume that isn't a web browser.

Anyone know what I'm doing wrong?
Thanks.
User login
Browse archives
« July 2014  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
11
12
13
14
15
16
17
18
19
20
21
22
23
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   46186
Context Free Art (*.cfdg)   0.31   36745
R Edit Mode - extensive version   0.1   10971
JBuilder scheme   .001   10728
Advanced HTML edit mode   1.0   10424
BBEdit scheme   1.0   10292
Matlab Edit Mode   1.0   10292
ColdFusion scheme   1.0   10280
jEdit XP icons   1.0   9747
XP icons for jEdit   1.1   9688