X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f4cc34f375fbff74006f3057e90dd01c426f580..d1b736b7968ceea4233f3fceecdb01173f68a9a3:/wxPython/wx/lib/wxpTag.py diff --git a/wxPython/wx/lib/wxpTag.py b/wxPython/wx/lib/wxpTag.py index d362fb365f..13d2a172f9 100644 --- a/wxPython/wx/lib/wxpTag.py +++ b/wxPython/wx/lib/wxpTag.py @@ -163,16 +163,13 @@ class wxpTagHandler(wx.html.HtmlWinTagHandler): # create the object 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