/[ascend]/trunk/pygtk/help.py
ViewVC logotype

Diff of /trunk/pygtk/help.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1589 by jpye, Tue Jul 24 08:43:23 2007 UTC revision 1590 by jpye, Thu Aug 9 14:47:47 2007 UTC
# Line 24  class Help: Line 24  class Help:
24                  self.goonline = True                  self.goonline = True
25    
26      def run(self,topic=None):      def run(self,topic=None):
27          _b = webbrowser.get()  
28            if platform.system()=="Windows":
29                _b = webbrowser.get()
30            else:
31                # tested on Fedora 7:
32                _b = webbrowser.get('firefox')
33    
34          if self.goonline:          if self.goonline:
35              _u = self.webhelproot              _u = self.webhelproot
# Line 33  class Help: Line 38  class Help:
38              _u = "file://"+_p              _u = "file://"+_p
39                    
40          print "OPENING WEB PAGE: %s..." % _u          print "OPENING WEB PAGE: %s..." % _u
41          _b.open(_u);          _b.open(_u,autoraise=1);
42          print "BACK FROM WEB CALL"          print "BACK FROM WEB CALL"
43    
44  if __name__ == "__main__":  if __name__ == "__main__":

Legend:
Removed from v.1589  
changed lines
  Added in v.1590

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22