docutil/dochtml.py
changeset 1836 d42b6cf00fa6
parent 1768 691083b5682a
child 1838 646245c1c0d9
equal deleted inserted replaced
1835:7533061a6d82 1836:d42b6cf00fa6
    66             wx.html.HtmlWindow.Bind(event, handler, source=source, id=id, id2=id2)
    66             wx.html.HtmlWindow.Bind(event, handler, source=source, id=id, id2=id2)
    67 
    67 
    68 
    68 
    69 class HtmlFrame(wx.Frame):
    69 class HtmlFrame(wx.Frame):
    70         def _init_ctrls(self, prnt):
    70         def _init_ctrls(self, prnt):
    71             wx.Frame.__init__(self, id=ID_HTMLFRAME, name='HtmlFrame',
       
    72                               parent=prnt, pos=wx.Point(320, 231), size=wx.Size(853, 616),
       
    73                               style=wx.DEFAULT_FRAME_STYLE, title='')
       
    74             self.SetIcon(prnt.icon)
    71             self.SetIcon(prnt.icon)
    75             self.Bind(wx.EVT_CLOSE, self.OnCloseFrame)
    72             self.Bind(wx.EVT_CLOSE, self.OnCloseFrame)
    76 
    73 
    77             self.HtmlContent = UrlClickHtmlWindow(id=ID_HTMLFRAMEHTMLCONTENT,
    74             self.HtmlContent = UrlClickHtmlWindow(id=ID_HTMLFRAMEHTMLCONTENT,
    78                                                   name='HtmlContent', parent=self, pos=wx.Point(0, 0),
    75                                                   name='HtmlContent', parent=self, pos=wx.Point(0, 0),
    79                                                   size=wx.Size(-1, -1), style=wx.html.HW_SCROLLBAR_AUTO | wx.html.HW_NO_SELECTION)
    76                                                   size=wx.Size(-1, -1), style=wx.html.HW_SCROLLBAR_AUTO | wx.html.HW_NO_SELECTION)
    80             self.HtmlContent.Bind(HtmlWindowUrlClick, self.OnLinkClick)
    77             self.HtmlContent.Bind(HtmlWindowUrlClick, self.OnLinkClick)
    81 
    78 
    82         def __init__(self, parent, opened):
    79         def __init__(self, parent, opened):
       
    80             wx.Frame.__init__(self, id=ID_HTMLFRAME, name='HtmlFrame',
       
    81                               parent=parent, pos=wx.Point(320, 231),
       
    82                               size=wx.Size(853, 616),
       
    83                               style=wx.DEFAULT_FRAME_STYLE, title='')
    83             self._init_ctrls(parent)
    84             self._init_ctrls(parent)
    84             self.HtmlFrameOpened = opened
    85             self.HtmlFrameOpened = opened
    85 
    86 
    86         def SetHtmlCode(self, htmlcode):
    87         def SetHtmlCode(self, htmlcode):
    87             self.HtmlContent.SetPage(htmlcode)
    88             self.HtmlContent.SetPage(htmlcode)