]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/wxpTag.py
Remove const bool
[wxWidgets.git] / wxPython / wx / lib / wxpTag.py
index d362fb365fde4772fa4331cef680960dc6339ce9..13d2a172f990d5ae1183aab27a4a2ab12a0ed6d8 100644 (file)
@@ -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