我想一个HTTPS URL加载到HTMLWindow加载HTTPS网页到wx.html.HTMLWindow
import wx
import wx.html
class 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, "https://www.google.com")#Fails to load page
#but the following works ...
#wx.CallAfter(html.LoadPage, "http://www.google.com")#Works Fine!
app = wx.PySimpleApp()
frm = MyHtmlFrame(None, "Simple HTML Browser")
frm.Show()
app.MainLoop()
有没有办法来加载HTMLWindow一个SSL页面(或其他一些在-A-wxWindow的呈现ssl页面的方式)?
我使用WX 2.8.10,升级是不是一个真正的选择目前
您可以使用该解决方案['的WebView '](http://wxpython.org/Phoenix/docs/html/html2.WebView.html)而不是? – lmjohns3
不幸的是,除非有一个Python包,只是给了我(我使用2.8.10,并没有到2.9.3左右,真的不能更新...) –
@ lmjohns3感谢它的灵感看起来像伊文将工作得很好,这是有点simillar(因为即时通讯在Windows ...我宁愿让一些更便携,但meh) –