Tkinter 帮助查看器 [英] Tkinter help viewer

查看:39
本文介绍了Tkinter 帮助查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Python 中有一个简单的 Tkinter 应用程序.我想给它添加帮助文档;将帮助查看器集成到应用程序的最简单方法是什么?最好是跨平台的(虽然我主要使用 Windows)?

I have a simple Tkinter app in Python. I'd like to add help document to it; what is the simplest way to integrate an help viewer to the app? Preferably cross-platform (although I primarily use Windows)?

我可以想象用纯 HTML 编写帮助.

I can imagine writing the help in plain HTML.

推荐答案

或者只是启动一个外部网络浏览器,使用 webbrowser 模块.

Or just launch an external web browser, using the webbrowser module from the standard library.

import webbrowser
webbrowser.open('/path/to/help/file.html')

要编写文档,请查看 sphinx.

For writing your documentation, have a look at sphinx.

这篇关于Tkinter 帮助查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆