- '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 PPanel(wxPanel):
def __init__(self, parent, name):
wxPanel.__init__(self, parent, -1, name=name)
class PPanel(wxPanel):
def __init__(self, parent, name):
wxPanel.__init__(self, parent, -1, name=name)
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"),
self.modified = self.freeze = False
self.radio_std = XRCCTRL(self, 'RADIO_STD')
self.modified = self.freeze = False
self.radio_std = XRCCTRL(self, 'RADIO_STD')
self.combo = XRCCTRL(self, 'COMBO_STD')
self.text = XRCCTRL(self, 'TEXT_FILE')
self.button = XRCCTRL(self, 'BUTTON_BROWSE')
self.combo = XRCCTRL(self, 'COMBO_STD')
self.text = XRCCTRL(self, 'TEXT_FILE')
self.button = XRCCTRL(self, 'BUTTON_BROWSE')