def __init__(self, parent, id = -1):
if wxPlatform != '__WXMAC__': # some problems with this style on macs
wxNotebook.__init__(self, parent, id, style=wxNB_BOTTOM)
+ self.SetBackgroundColour(parent.GetBackgroundColour())
else:
wxNotebook.__init__(self, parent, id)
global panel
xxx.params[param] = xxxParam(elem)
# Find place to put new element: first present element after param
found = False
- paramStyles = xxx.allParams + xxx.styles
+ if xxx.hasStyle:
+ paramStyles = xxx.allParams + xxx.styles
+ else:
+ paramStyles = xxx.allParams
for p in paramStyles[paramStyles.index(param) + 1:]:
# Content params don't have same type
if xxx.params.has_key(p) and p != 'content':