docutil/dochtml.py
changeset 1865 0bd5b3099144
parent 1850 614396cbffbf
child 1881 091005ec69c4
equal deleted inserted replaced
1864:9e64afb38963 1865:0bd5b3099144
    60 
    60 
    61     def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
    61     def Bind(self, event, handler, source=None, id=wx.ID_ANY, id2=wx.ID_ANY):
    62         if event == HtmlWindowUrlClick:
    62         if event == HtmlWindowUrlClick:
    63             self.Connect(-1, -1, EVT_HTML_URL_CLICK, handler)
    63             self.Connect(-1, -1, EVT_HTML_URL_CLICK, handler)
    64         else:
    64         else:
    65             wx.html.HtmlWindow.Bind(event, handler, source=source, id=id, id2=id2)
    65             wx.html.HtmlWindow.Bind(self, event, handler, source=source, id=id, id2=id2)
    66 
    66 
    67 
    67 
    68 class HtmlFrame(wx.Frame):
    68 class HtmlFrame(wx.Frame):
    69     def _init_ctrls(self, prnt):
    69     def _init_ctrls(self, prnt):
    70         self.SetIcon(prnt.icon)
    70         self.SetIcon(prnt.icon)