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

Annotation of /trunk/pygtk/interface/help.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 230 - (hide annotations) (download) (as text)
Sun Jan 29 07:16:06 2006 UTC (18 years, 5 months ago) by johnpye
File MIME type: text/x-python
File size: 437 byte(s)
Solverparameters GUI code split into separate file.
Help launcher started, will need more work.
Corrected wrong cpu_elapsed values in GUI by direct use of tm_cpu_time()
Added 'about' box.
Fixed 'auto' menu option.
1 johnpye 230 import webbrowser
2     import os.path
3    
4     class Help:
5     def __init__(self,helproot=None):
6     if helproot==None:
7     self.helproot = os.path.expanduser("~/src/ascend-doc/trunk/html")
8     else:
9     self.helproot = helproot
10    
11     def run(self,topic=None):
12     #_b = webbrowser.GenericBrowser('dillo %s &');
13     _b = webbrowser.Konqueror();
14     _p = os.path.join(self.helproot,"book.html");
15     _b.open("file:"+_p);
16    
17     if __name__ == "__main__":
18     _h = Help()
19     _h.run()

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