From 7f3e41c4d36bfa0cfc71d139b1ddc43e2021ef01 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 9 Feb 2007 23:43:24 +0000 Subject: [PATCH] A bit of code cleanup git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/wxpTag.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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