- 'wxCLIP_CHILDREN',
- 'wxSIMPLE_BORDER',
- 'wxSUNKEN_BORDER',
- 'wxDOUBLE_BORDER',
- 'wxRAISED_BORDER',
- 'wxSTATIC_BORDER',
- 'wxNO_BORDER',
- 'wxTRANSPARENT_WINDOW',
+ 'wxSIMPLE_BORDER', 'wxDOUBLE_BORDER', 'wxSUNKEN_BORDER',
+ 'wxRAISED_BORDER', 'wxSTATIC_BORDER', 'wxNO_BORDER',
+ 'wxTRANSPARENT_WINDOW', 'wxTAB_TRAVERSAL',
- 'wxFULL_REPAINT_ON_RESIZE',
+ 'wxVSCROLL', 'wxHSCROLL', 'wxALWAYS_SHOW_SB',
+ 'wxCLIP_CHILDREN',
+ 'wxFULL_REPAINT_ON_RESIZE'
+ ]
+
+genericExStyles = [
+ 'wxWS_EX_VALIDATE_RECURSIVELY',
class ParamExStyle(ParamBinaryOr):
def __init__(self, parent, name):
if g.currentXXX:
class ParamExStyle(ParamBinaryOr):
def __init__(self, parent, name):
if g.currentXXX:
- except KeyError: error = True
- try: underlined = int(self.value[4])
- except ValueError: error = True
+ except KeyError: error = True; wxLogError('Invalid weight specification')
+ try: underlined = bool(self.value[4])
+ except ValueError: error = True; wxLogError('Invalid underlined flag specification')
if error: wxLogError('Invalid font specification')
if enc == wxFONTENCODING_DEFAULT: enc = wxFONTENCODING_SYSTEM
font = wxFont(size, family, style, weight, underlined, face, enc)
if error: wxLogError('Invalid font specification')
if enc == wxFONTENCODING_DEFAULT: enc = wxFONTENCODING_SYSTEM
font = wxFont(size, family, style, weight, underlined, face, enc)
dlg = wxFontDialog(self, data)
if dlg.ShowModal() == wxID_OK:
font = dlg.GetFontData().GetChosenFont()
dlg = wxFontDialog(self, data)
if dlg.ShowModal() == wxID_OK:
font = dlg.GetFontData().GetChosenFont()
value = [str(font.GetPointSize()),
fontFamiliesWx2Xml.get(font.GetFamily(), "default"),
fontStylesWx2Xml.get(font.GetStyle(), "normal"),
fontWeightsWx2Xml.get(font.GetWeight(), "normal"),
value = [str(font.GetPointSize()),
fontFamiliesWx2Xml.get(font.GetFamily(), "default"),
fontStylesWx2Xml.get(font.GetStyle(), "normal"),
fontWeightsWx2Xml.get(font.GetWeight(), "normal"),
class ContentDialog(wxDialog):
def __init__(self, parent, value):
# Load from resource
class ContentDialog(wxDialog):
def __init__(self, parent, value):
# Load from resource
class ContentCheckListDialog(wxDialog):
def __init__(self, parent, value):
class ContentCheckListDialog(wxDialog):
def __init__(self, parent, value):
class IntListDialog(wxDialog):
def __init__(self, parent, value):
class IntListDialog(wxDialog):
def __init__(self, parent, value):
class ParamBitmap(PPanel):
def __init__(self, parent, name):
class ParamBitmap(PPanel):
def __init__(self, parent, name):
self.SetBackgroundColour(parent.GetBackgroundColour())
self.SetForegroundColour(parent.GetForegroundColour())
self.modified = self.freeze = False
self.SetBackgroundColour(parent.GetBackgroundColour())
self.SetForegroundColour(parent.GetForegroundColour())
self.modified = self.freeze = False
'flag': ParamFlag,
'style': ParamStyle, 'exstyle': ParamExStyle,
'pos': ParamPosSize, 'size': ParamPosSize,
'flag': ParamFlag,
'style': ParamStyle, 'exstyle': ParamExStyle,
'pos': ParamPosSize, 'size': ParamPosSize,
'border': ParamUnit, 'cols': ParamInt, 'rows': ParamInt,
'vgap': ParamUnit, 'hgap': ParamUnit,
'checkable': ParamBool, 'checked': ParamBool, 'radio': ParamBool,
'border': ParamUnit, 'cols': ParamInt, 'rows': ParamInt,
'vgap': ParamUnit, 'hgap': ParamUnit,
'checkable': ParamBool, 'checked': ParamBool, 'radio': ParamBool,