Various tweaks, fixes, and additions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -119,9 +119,6 @@ class wxpTagHandler(wxHtmlWinTagHandler):
|
||||
|
||||
|
||||
def HandleWxpTag(self, tag):
|
||||
if tag.IsEnding():
|
||||
return false
|
||||
|
||||
# create a new context object
|
||||
self.ctx = _Context()
|
||||
|
||||
@@ -143,8 +140,6 @@ class wxpTagHandler(wxHtmlWinTagHandler):
|
||||
if type(self.ctx.classObj) != types.ClassType:
|
||||
raise TypeError, "WXP tag attribute CLASS must name a class"
|
||||
|
||||
|
||||
|
||||
# now look for width and height
|
||||
width = -1
|
||||
height = -1
|
||||
@@ -159,7 +154,7 @@ class wxpTagHandler(wxHtmlWinTagHandler):
|
||||
height = string.atoi(tag.GetParam('HEIGHT'))
|
||||
self.ctx.kwargs['size'] = wxSize(width, height)
|
||||
|
||||
|
||||
# parse up to the closing tag, and gather any nested Param tags.
|
||||
self.ParseInner(tag)
|
||||
|
||||
# create the object
|
||||
@@ -177,12 +172,7 @@ class wxpTagHandler(wxHtmlWinTagHandler):
|
||||
return true
|
||||
|
||||
|
||||
|
||||
|
||||
def HandleParamTag(self, tag):
|
||||
if tag.IsEnding():
|
||||
return false
|
||||
|
||||
if not tag.HasParam('NAME'):
|
||||
return false
|
||||
|
||||
|
Reference in New Issue
Block a user