some new parameters
removing empty text nodes from XML git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -241,11 +241,10 @@ class xxxObject:
|
|||||||
self.params[tag] = xxxParamBitmap(node)
|
self.params[tag] = xxxParamBitmap(node)
|
||||||
else: # simple parameter
|
else: # simple parameter
|
||||||
self.params[tag] = xxxParam(node)
|
self.params[tag] = xxxParam(node)
|
||||||
else:
|
elif node.nodeType == minidom.Node.TEXT_NODE and node.data.isspace():
|
||||||
pass
|
# Remove empty text nodes
|
||||||
# Remove all other nodes
|
element.removeChild(node)
|
||||||
# element.removeChild(node)
|
node.unlink()
|
||||||
# node.unlink()
|
|
||||||
|
|
||||||
# Check that all required params are set
|
# Check that all required params are set
|
||||||
for param in self.required:
|
for param in self.required:
|
||||||
@@ -397,19 +396,21 @@ class xxxFrame(xxxContainer):
|
|||||||
'tooltip']
|
'tooltip']
|
||||||
|
|
||||||
class xxxTool(xxxObject):
|
class xxxTool(xxxObject):
|
||||||
allParams = ['bitmap', 'bitmap2', 'toggle', 'tooltip', 'longhelp', 'label']
|
allParams = ['bitmap', 'bitmap2', 'radio', 'toggle', 'tooltip', 'longhelp', 'label']
|
||||||
required = ['bitmap']
|
required = ['bitmap']
|
||||||
paramDict = {'bitmap2': ParamBitmap, 'toggle': ParamBool}
|
paramDict = {'bitmap2': ParamBitmap, 'radio': ParamBool, 'toggle': ParamBool}
|
||||||
hasStyle = False
|
hasStyle = False
|
||||||
|
|
||||||
class xxxToolBar(xxxContainer):
|
class xxxToolBar(xxxContainer):
|
||||||
allParams = ['bitmapsize', 'margins', 'packing', 'separation',
|
allParams = ['bitmapsize', 'margins', 'packing', 'separation', 'dontattachtoframe',
|
||||||
'pos', 'size', 'style']
|
'pos', 'size', 'style']
|
||||||
hasStyle = False
|
hasStyle = False
|
||||||
paramDict = {'bitmapsize': ParamPosSize, 'margins': ParamPosSize,
|
paramDict = {'bitmapsize': ParamPosSize, 'margins': ParamPosSize,
|
||||||
'packing': ParamInt, 'separation': ParamInt,
|
'packing': ParamInt, 'separation': ParamInt,
|
||||||
'style': ParamNonGenericStyle}
|
'dontattachtoframe': ParamBool, 'style': ParamNonGenericStyle}
|
||||||
winStyles = ['wxTB_FLAT', 'wxTB_DOCKABLE', 'wxTB_VERTICAL', 'wxTB_HORIZONTAL', 'wxTB_TEXT']
|
winStyles = ['wxTB_FLAT', 'wxTB_DOCKABLE', 'wxTB_VERTICAL', 'wxTB_HORIZONTAL',
|
||||||
|
'wxTB_3DBUTTONS','wxTB_TEXT', 'wxTB_NOICONS', 'wxTB_NODIVIDER',
|
||||||
|
'wxTB_NOALIGN', 'wxTB_HORZ_LAYOUT', 'wxTB_HORZ_TEXT']
|
||||||
|
|
||||||
class xxxWizard(xxxContainer):
|
class xxxWizard(xxxContainer):
|
||||||
allParams = ['title', 'bitmap', 'pos']
|
allParams = ['title', 'bitmap', 'pos']
|
||||||
|
Reference in New Issue
Block a user