]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/wxpTag.py
move some data definitions to more appropriate places
[wxWidgets.git] / wxPython / wx / lib / wxpTag.py
index 65e1b58ad2cb4cb4b42db3915b4eedb1b08a1eb1..4adefc12a7683418dd7967e5743c64bfd8531f72 100644 (file)
@@ -161,7 +161,7 @@ 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,),
@@ -169,7 +169,8 @@ class wxpTagHandler(wx.html.HtmlWinTagHandler):
             obj.Show(True)
 
             # add it to the HtmlWindow
-            self.GetParser().GetContainer().InsertCell(wx.html.HtmlWidgetCell(obj, self.ctx.floatWidth))
+            self.GetParser().GetContainer().InsertCell(
+                wx.html.HtmlWidgetCell(obj, self.ctx.floatWidth))
             self.ctx = None
 
         return True