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
« October 2014  
MoTuWeThFrSaSu
 
1
2
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
24
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   47009
Context Free Art (*.cfdg)   0.31   37105
JBuilder scheme   .001   11380
R Edit Mode - extensive version   0.1   11300
BBEdit scheme   1.0   10945
ColdFusion scheme   1.0   10935
Advanced HTML edit mode   1.0   10752
Matlab Edit Mode   1.0   10618
jEdit XP icons   1.0   10076
XP icons for jEdit   1.1   9914