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
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
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']