[GRASS-dev] [GRASS GIS] #2249: handling manual pages with external links within the GUI

GRASS GIS trac at osgeo.org
Wed Apr 9 06:57:37 PDT 2014


#2249: handling manual pages with external links within the GUI
-------------------------+--------------------------------------------------
 Reporter:  madi         |       Owner:  grass-dev@…              
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.1.0                    
Component:  wxGUI        |     Version:  svn-trunk                
 Keywords:  manual       |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------

Comment(by wenzeslaus):

 Replying to [comment:2 neteler]:
 > Replying to [comment:1 wenzeslaus]:
 > > I'm not sure what user would expect. But you might be right.
 > > External links are special and the HTML rendering capabilities
 > > of the used widget are (currently) very limited.
 >
 > An initial improvement could be as easy as this (if technically
 possible):
 >
 > If the link contains "http", open it with an external browser (env var
 > $GRASS_HTML_BROWSER), otherwise open page as currently in the wx-
 browser.

 As far  as I know, we are currently using "system browser" not
 `$GRASS_HTML_BROWSER` in wxGUI and I'm not sure what is correct. However,
 the difference is just few lines.

 Here is the solution [http://wxpython-users.1045709.n5.nabble.com/Open-a
 -URL-with-the-default-browser-from-an-HtmlWindow-td2326349.html Open a URL
 with the default browser from an HtmlWindow?] for your suggestion.

 They are using Python [https://docs.python.org/2/library/webbrowser.html
 webbrowser], the alternative is
 [http://docs.wxwidgets.org/2.6.3/wx_miscellany.html#wxlaunchdefaultbrowser
 wxLaunchDefaultBrowser].

 The button I was talking about might be even more simple, just call the
 browser with current URL/file.

 I would suggest to implement both.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2249#comment:3>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list