html_window_loadpage.py
来自「wxPython的基本示例程序」· Python 代码 · 共 18 行
PY
18 行
import wximport wx.htmlclass MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(600,400)) html = wx.html.HtmlWindow(self) if "gtk2" in wx.PlatformInfo: html.SetStandardFonts() wx.CallAfter( html.LoadPage, "http://wxwidgets.org/manuals/2.6.2/wx_wxbutton.html")app = wx.PySimpleApp()frm = MyHtmlFrame(None, "Simple HTML Browser")frm.Show()app.MainLoop()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?