from types import *
from wxPython.xrc import *
-genericStyles = ['wxSIMPLE_BORDER', 'wxDOUBLE_BORDER',
- 'wxSUNKEN_BORDER', 'wxRAISED_BORDER',
- 'wxSTATIC_BORDER', 'wxNO_BORDER',
- 'wxTRANSPARENT_WINDOW', 'wxWANTS_CHARS',
- 'wxNO_FULL_REPAINT_ON_RESIZE']
+genericStyles = [
+ 'wxCLIP_CHILDREN',
+ 'wxSIMPLE_BORDER',
+ 'wxSUNKEN_BORDER',
+ 'wxDOUBLE_BORDER',
+ 'wxRAISED_BORDER',
+ 'wxSTATIC_BORDER',
+ 'wxNO_BORDER',
+ 'wxTRANSPARENT_WINDOW',
+ 'wxWANTS_CHARS',
+ 'wxNO_FULL_REPAINT_ON_RESIZE',
+ 'wxFULL_REPAINT_ON_RESIZE',
+ 'wxWS_EX_BLOCK_EVENTS',
+]
buttonSize = (35,-1) # in dialog units, transformed to pixels in panel ctor
class ContentDialog(wxDialog):
def __init__(self, parent, value):
# Load from resource
- pre = wxPreDialog()
+ pre = wxPreDialog()
g.frame.res.LoadOnDialog(pre, parent, 'DIALOG_CONTENT')
self.this = pre.this
- self._setOORInfo(self)
+ self._setOORInfo(self)
self.list = XRCCTRL(self, 'LIST')
# Set list items
for v in value:
class ContentCheckListDialog(wxDialog):
def __init__(self, parent, value):
- pre = wxPreDialog()
+ pre = wxPreDialog()
g.frame.res.LoadOnDialog(pre, parent, 'DIALOG_CONTENT_CHECK_LIST')
self.this = pre.this
- self._setOORInfo(self)
+ self._setOORInfo(self)
self.list = XRCCTRL(self, 'CHECK_LIST')
# Set list items
i = 0
class IntListDialog(wxDialog):
def __init__(self, parent, value):
- pre = wxPreDialog()
+ pre = wxPreDialog()
g.frame.res.LoadOnDialog(pre, parent, 'DIALOG_INTLIST')
self.this = pre.this
- self._setOORInfo(self)
+ self._setOORInfo(self)
self.list = XRCCTRL(self, 'LIST')
# Set list items
value.sort()
class ParamBitmap(PPanel):
def __init__(self, parent, name):
- pre = wxPrePanel()
+ pre = wxPrePanel()
g.frame.res.LoadOnPanel(pre, parent, 'PANEL_BITMAP')
self.this = pre.this
- self._setOORInfo(self)
+ self._setOORInfo(self)
self.SetBackgroundColour(parent.GetBackgroundColour())
self.SetForegroundColour(parent.GetForegroundColour())
self.modified = self.freeze = False
'flag': ParamFlag,
'style': ParamStyle, 'exstyle': ParamExStyle,
'pos': ParamPosSize, 'size': ParamPosSize,
+ 'cellpos': ParamPosSize, 'cellspan': ParamPosSize,
'border': ParamUnit, 'cols': ParamInt, 'rows': ParamInt,
'vgap': ParamUnit, 'hgap': ParamUnit,
'checkable': ParamBool, 'checked': ParamBool, 'radio': ParamBool,