X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fec9bb97b3f62e8c0f37f4806a2146ca463698f2..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/wxPython/wx/lib/wxpTag.py diff --git a/wxPython/wx/lib/wxpTag.py b/wxPython/wx/lib/wxpTag.py index 5de374e990..13d2a172f9 100644 --- a/wxPython/wx/lib/wxpTag.py +++ b/wxPython/wx/lib/wxpTag.py @@ -25,7 +25,7 @@ You don\'t need to use anything in this module directly, just importing it will create the tag handler and add it to any wxHtmlWinParsers created from that time forth. -Tags of the following form are recognised: +Tags of the following form are recognised:: @@ -161,18 +161,15 @@ class wxpTagHandler(wx.html.HtmlWinTagHandler): self.ParseInner(tag) # create the object - parent = self.GetParser().GetWindow() + parent = self.GetParser().GetWindowInterface().GetHTMLWindow() if parent: - obj = apply(self.ctx.classObj, - (parent,), - self.ctx.kwargs) + obj = self.ctx.classObj(parent, **self.ctx.kwargs) obj.Show(True) # add it to the HtmlWindow self.GetParser().GetContainer().InsertCell( wx.html.HtmlWidgetCell(obj, self.ctx.floatWidth)) self.ctx = None - return True