def value(self):
return self.textNode.data.encode(g.currentEncoding)
def update(self, value):
- try: # handle exception if encoding is wrong
+ try: # handle exception if encoding is wrong
self.textNode.data = unicode(value, g.currentEncoding)
- except UnicodeDecodeError:
+ except UnicodeDecodeError:
wxLogMessage("Unicode error: set encoding in file\nglobals.py to something appropriate")
# Integer parameter
exStyles = ['wxWS_EX_VALIDATE_RECURSIVELY']
class xxxTool(xxxObject):
- allParams = ['bitmap', 'bitmap2', 'toggle', 'tooltip', 'longhelp']
+ allParams = ['bitmap', 'bitmap2', 'toggle', 'tooltip', 'longhelp', 'label']
required = ['bitmap']
paramDict = {'bitmap2': ParamBitmap, 'toggle': ParamBool}
hasStyle = False
paramDict = {'bitmapsize': ParamPosSize, 'margins': ParamPosSize,
'packing': ParamInt, 'separation': ParamInt,
'style': ParamNonGenericStyle}
- winStyles = ['wxTB_FLAT', 'wxTB_DOCKABLE', 'wxTB_VERTICAL', 'wxTB_HORIZONTAL']
+ winStyles = ['wxTB_FLAT', 'wxTB_DOCKABLE', 'wxTB_VERTICAL', 'wxTB_HORIZONTAL', 'wxTB_TEXT']
################################################################################
# Bitmap, Icon
allParams = ['orientation', 'sashpos', 'minsize', 'pos', 'size', 'style']
paramDict = {'orientation': ParamOrientation, 'sashpos': ParamUnit, 'minsize': ParamUnit }
winStyles = ['wxSP_3D', 'wxSP_3DSASH', 'wxSP_3DBORDER', 'wxSP_BORDER',
- 'wxSP_NOBORDER', 'wxSP_PERMIT_UNSPLIT', 'wxSP_LIVE_UPDATE',
- 'wxSP_NO_XP_THEME' ]
+ 'wxSP_NOBORDER', 'wxSP_PERMIT_UNSPLIT', 'wxSP_LIVE_UPDATE',
+ 'wxSP_NO_XP_THEME' ]
class xxxGenericDirCtrl(xxxObject):
allParams = ['defaultfolder', 'filter', 'defaultfilter', 'pos', 'size', 'style']