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
This commit is contained in:
@@ -163,16 +163,13 @@ class wxpTagHandler(wx.html.HtmlWinTagHandler):
|
|||||||
# create the object
|
# create the object
|
||||||
parent = self.GetParser().GetWindowInterface().GetHTMLWindow()
|
parent = self.GetParser().GetWindowInterface().GetHTMLWindow()
|
||||||
if parent:
|
if parent:
|
||||||
obj = apply(self.ctx.classObj,
|
obj = self.ctx.classObj(parent, **self.ctx.kwargs)
|
||||||
(parent,),
|
|
||||||
self.ctx.kwargs)
|
|
||||||
obj.Show(True)
|
obj.Show(True)
|
||||||
|
|
||||||
# add it to the HtmlWindow
|
# add it to the HtmlWindow
|
||||||
self.GetParser().GetContainer().InsertCell(
|
self.GetParser().GetContainer().InsertCell(
|
||||||
wx.html.HtmlWidgetCell(obj, self.ctx.floatWidth))
|
wx.html.HtmlWidgetCell(obj, self.ctx.floatWidth))
|
||||||
self.ctx = None
|
self.ctx = None
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user