3
如何在使用Python的特定部分中打開.chm幫助文件?其實我用下面的函數打開文件:如何在Python中打開chm文件的特定部分?
def help(self):
# Open the help file
os.startfile(os.getcwd()+"/config/help.chm")
如何在使用Python的特定部分中打開.chm幫助文件?其實我用下面的函數打開文件:如何在Python中打開chm文件的特定部分?
def help(self):
# Open the help file
os.startfile(os.getcwd()+"/config/help.chm")
我找到一個方法來做到這一點,但更多的與Windows中的HH程序:
使用程序chmprocessor生成我的幫助文件它生成chm文件並生成一個hhk文件(包含引用)。使用這個文件我用下面的代碼
def help(self)
os.system("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")
我認爲這是這樣的,如果有另一種簡單的方法。請告訴我。
問候
德國
其他sugestion:
subprocess.Popen("hh.exe d:/help.chm::/4_Userguide.htm#_Toc270510")