rem
stringlengths
0
322k
add
stringlengths
0
2.05M
context
stringlengths
8
228k
print 'ZippedImageStore'
def __init__(self, rootpath, defaultArchive, images = None): print 'ZippedImageStore' ImageStore.__init__(self, rootpath, images) self.archives = {} self.addArchive(defaultArchive)
tmpname = tempfile.mktemp() open(tmpname, 'w').write(zf.read(img))
def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist)
except: print 'Ext not handled', bmpPath
except Exception, error: print 'Ext not handled', bmpPath, str(error)
def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist)
commonDefs = eval(cfg.Read(commonDefsFile))
commonDefs = readPyValFromConfig(cfg, commonDefsFile)
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(false) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.GetFirstGroup() while cont: if val != groupPrefix and len(val) >= 5 and val[:5] == 'style': if len(val) > gpLen and val[:gpLen] == groupPrefix: predefStyleGroupNames.append(val) else: otherLangStyleGroupNames.append(val) cont, val, idx = cfg.GetNextGroup(idx) # read in common elements commonDefs = eval(cfg.Read(commonDefsFile)) assert type(commonDefs) is type({}), \ 'Common definitions (%s) not a valid dict'%commonDefsFile commonStyleIdNames = eval(cfg.Read('common.styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Common definitions (%s) not a valid dict'%'common.styleidnames' # Lang spesific settings cfg.SetPath(lang) styleIdNames = eval(cfg.Read('styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] styleidnames)'%lang styleIdNames.update(commonStyleIdNames) braceInfo = eval(cfg.Read('braces')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] braces)'%lang displaySrc = cfg.Read('displaysrc') lexer = eval(cfg.Read('lexer')) keywords = cfg.Read('keywords') cfg.SetPath('') # read in current styles styles = readStylesFromConfig(cfg, groupPrefix) # read in predefined styles predefStyleGroups = {} for group in predefStyleGroupNames: predefStyleGroups[group] = readStylesFromConfig(cfg, group) # read in all other style sections otherLangStyleGroups = {} for group in otherLangStyleGroupNames: otherLangStyleGroups[group] = readStylesFromConfig(cfg, group) return (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo)
commonStyleIdNames = eval(cfg.Read('common.styleidnames'))
commonStyleIdNames = readPyValFromConfig(cfg, 'common.styleidnames')
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(false) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.GetFirstGroup() while cont: if val != groupPrefix and len(val) >= 5 and val[:5] == 'style': if len(val) > gpLen and val[:gpLen] == groupPrefix: predefStyleGroupNames.append(val) else: otherLangStyleGroupNames.append(val) cont, val, idx = cfg.GetNextGroup(idx) # read in common elements commonDefs = eval(cfg.Read(commonDefsFile)) assert type(commonDefs) is type({}), \ 'Common definitions (%s) not a valid dict'%commonDefsFile commonStyleIdNames = eval(cfg.Read('common.styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Common definitions (%s) not a valid dict'%'common.styleidnames' # Lang spesific settings cfg.SetPath(lang) styleIdNames = eval(cfg.Read('styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] styleidnames)'%lang styleIdNames.update(commonStyleIdNames) braceInfo = eval(cfg.Read('braces')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] braces)'%lang displaySrc = cfg.Read('displaysrc') lexer = eval(cfg.Read('lexer')) keywords = cfg.Read('keywords') cfg.SetPath('') # read in current styles styles = readStylesFromConfig(cfg, groupPrefix) # read in predefined styles predefStyleGroups = {} for group in predefStyleGroupNames: predefStyleGroups[group] = readStylesFromConfig(cfg, group) # read in all other style sections otherLangStyleGroups = {} for group in otherLangStyleGroupNames: otherLangStyleGroups[group] = readStylesFromConfig(cfg, group) return (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo)
styleIdNames = eval(cfg.Read('styleidnames'))
styleIdNames = readPyValFromConfig(cfg, 'styleidnames')
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(false) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.GetFirstGroup() while cont: if val != groupPrefix and len(val) >= 5 and val[:5] == 'style': if len(val) > gpLen and val[:gpLen] == groupPrefix: predefStyleGroupNames.append(val) else: otherLangStyleGroupNames.append(val) cont, val, idx = cfg.GetNextGroup(idx) # read in common elements commonDefs = eval(cfg.Read(commonDefsFile)) assert type(commonDefs) is type({}), \ 'Common definitions (%s) not a valid dict'%commonDefsFile commonStyleIdNames = eval(cfg.Read('common.styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Common definitions (%s) not a valid dict'%'common.styleidnames' # Lang spesific settings cfg.SetPath(lang) styleIdNames = eval(cfg.Read('styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] styleidnames)'%lang styleIdNames.update(commonStyleIdNames) braceInfo = eval(cfg.Read('braces')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] braces)'%lang displaySrc = cfg.Read('displaysrc') lexer = eval(cfg.Read('lexer')) keywords = cfg.Read('keywords') cfg.SetPath('') # read in current styles styles = readStylesFromConfig(cfg, groupPrefix) # read in predefined styles predefStyleGroups = {} for group in predefStyleGroupNames: predefStyleGroups[group] = readStylesFromConfig(cfg, group) # read in all other style sections otherLangStyleGroups = {} for group in otherLangStyleGroupNames: otherLangStyleGroups[group] = readStylesFromConfig(cfg, group) return (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo)
braceInfo = eval(cfg.Read('braces'))
braceInfo = readPyValFromConfig(cfg, 'braces')
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(false) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.GetFirstGroup() while cont: if val != groupPrefix and len(val) >= 5 and val[:5] == 'style': if len(val) > gpLen and val[:gpLen] == groupPrefix: predefStyleGroupNames.append(val) else: otherLangStyleGroupNames.append(val) cont, val, idx = cfg.GetNextGroup(idx) # read in common elements commonDefs = eval(cfg.Read(commonDefsFile)) assert type(commonDefs) is type({}), \ 'Common definitions (%s) not a valid dict'%commonDefsFile commonStyleIdNames = eval(cfg.Read('common.styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Common definitions (%s) not a valid dict'%'common.styleidnames' # Lang spesific settings cfg.SetPath(lang) styleIdNames = eval(cfg.Read('styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] styleidnames)'%lang styleIdNames.update(commonStyleIdNames) braceInfo = eval(cfg.Read('braces')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] braces)'%lang displaySrc = cfg.Read('displaysrc') lexer = eval(cfg.Read('lexer')) keywords = cfg.Read('keywords') cfg.SetPath('') # read in current styles styles = readStylesFromConfig(cfg, groupPrefix) # read in predefined styles predefStyleGroups = {} for group in predefStyleGroupNames: predefStyleGroups[group] = readStylesFromConfig(cfg, group) # read in all other style sections otherLangStyleGroups = {} for group in otherLangStyleGroupNames: otherLangStyleGroups[group] = readStylesFromConfig(cfg, group) return (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo)
lexer = eval(cfg.Read('lexer'))
lexer = readPyValFromConfig(cfg, 'lexer')
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(false) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.GetFirstGroup() while cont: if val != groupPrefix and len(val) >= 5 and val[:5] == 'style': if len(val) > gpLen and val[:gpLen] == groupPrefix: predefStyleGroupNames.append(val) else: otherLangStyleGroupNames.append(val) cont, val, idx = cfg.GetNextGroup(idx) # read in common elements commonDefs = eval(cfg.Read(commonDefsFile)) assert type(commonDefs) is type({}), \ 'Common definitions (%s) not a valid dict'%commonDefsFile commonStyleIdNames = eval(cfg.Read('common.styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Common definitions (%s) not a valid dict'%'common.styleidnames' # Lang spesific settings cfg.SetPath(lang) styleIdNames = eval(cfg.Read('styleidnames')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] styleidnames)'%lang styleIdNames.update(commonStyleIdNames) braceInfo = eval(cfg.Read('braces')) assert type(commonStyleIdNames) is type({}), \ 'Not a valid dict [%s] braces)'%lang displaySrc = cfg.Read('displaysrc') lexer = eval(cfg.Read('lexer')) keywords = cfg.Read('keywords') cfg.SetPath('') # read in current styles styles = readStylesFromConfig(cfg, groupPrefix) # read in predefined styles predefStyleGroups = {} for group in predefStyleGroupNames: predefStyleGroups[group] = readStylesFromConfig(cfg, group) # read in all other style sections otherLangStyleGroups = {} for group in otherLangStyleGroupNames: otherLangStyleGroups[group] = readStylesFromConfig(cfg, group) return (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo)
self.paletteToolbar.DeleteTool(self.toolIdx)
print self.paletteToolbar.DeleteTool(self.toolIdx) self.paletteToolbar.Realize()
def OnCloseWindow(self, event): if self.paletteToolbar: self.paletteToolbar.DeleteTool(self.toolIdx)
def OnFindFocus(self, event): self.searchCtrl.SetFocus() def OnCloseHelp(self, event): self.Close()
def OnSelect(self, event): print 'select' self.Show(true) if self.IsIconized(): self.Iconize(false) self.Raise()
self.invokeOnServer('exit_debugger')
def call_exit(server=server): try: server.exit_debugger() except socket.error: pass self.taskHandler.addTask(call_exit)
def kill(self): server = self.server if server is not None: self.invokeOnServer('exit_debugger') self.server = None self.input_stream = None self.error_stream = None process = self.process self.process = None if process is not None: # process.Detach() if KEEP_STREAMS_OPEN: process.CloseOutput()
self.view.model.editor.setStatus('Search aborted')
def findInFiles(self): names = [] pattern = self.findTxt.GetValue() bRecursive = self.chkRecursiveSearch.GetValue() file_filter = string.split(self.cmbFileFilter.GetValue(), ';') folder = [self.cmbFolder.GetValue()] self.engine.addFolder(folder[0]) self.engine.addSuffix(self.cmbFileFilter.GetValue()) dlg = wxProgressDialog("Building file list from directory '%s'" % (folder[0]), 'Searching...', 100, self.view, wxPD_CAN_ABORT | wxPD_APP_MODAL | wxPD_AUTO_HIDE) try: iterDirFiles = Search.listFiles(folder, file_filter, 1, bRecursive) iStep = 0 for sFile in iterDirFiles: names.append(sFile) if iStep < 100 and not dlg.Update(iStep): self.view.model.editor.setStatus('Search aborted') break iStep = iStep + 1 finally: dlg.Destroy() self.engine.findAllInFiles(names, self.view, pattern ) self.setComboBoxes('findInFiles') if self.engine.closeOnFound: self.EndModal(wxID_OK)
maxRow = 0 maxCol = 0
maxRows = 0 maxCols = 0
def getNumRowsCols(self, childCompanion): maxRow = 0 maxCol = 0 for si in self.control.GetChildren(): (sipr, sipc), (sisr, sisc) = si.GetPos(), si.GetSpan() if sipr + sisr -1 > maxRow: maxRow = sipr + sisr -1 if sipc + sisc -1 > maxCol: maxCol = sipc + sisc -1 return maxRows, maxCols
if sipr + sisr -1 > maxRow: maxRow = sipr + sisr -1 if sipc + sisc -1 > maxCol: maxCol = sipc + sisc -1
if sipr + sisr > maxRows: maxRows = sipr + sisr if sipc + sisc > maxCols: maxCols = sipc + sisc
def getNumRowsCols(self, childCompanion): maxRow = 0 maxCol = 0 for si in self.control.GetChildren(): (sipr, sipc), (sisr, sisc) = si.GetPos(), si.GetSpan() if sipr + sisr -1 > maxRow: maxRow = sipr + sisr -1 if sipc + sisc -1 > maxCol: maxCol = sipc + sisc -1 return maxRows, maxCols
return map(lambda l: '
return ['
def processComment(self, textLst, idntBlock): return map(lambda l: '##%s'%l, textLst)
elif hasattr(wx.Namespace, wx.word): obj = getattr(wx.Namespace, wx.word)
elif hasattr(wxNamespace, wx.word): obj = getattr(wxNamespace, wx.word)
def handleBrwsRuntimeGlobals(self, word, currLineNo): # The current runtime values of the shell is inspected # as well as the wxPython namespaces if self.model.editor.shell: shellLocals = self.model.editor.shell.getShellLocals() else: shellLocals = {}
def _init_utils(self): pass
def _init_utils(self): # generated method, don't edit pass
parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482),
parent=prnt, pos=wxPoint(567, 279), size=wxSize(493, 482),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self._init_utils() self.SetClientSize(wxSize(451, 455))
self.SetClientSize(wxSize(485, 455))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(96, 28), size=wxSize(346, 21), style=0,
parent=self, pos=wxPoint(96, 28), size=wxSize(380, 21), style=0,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
true, true, true, false))
True, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='elementLb', parent=self, pos=wxPoint(8, 72), size=wxSize(160, 112), style=0, validator=wxDefaultValidator) self.elementLb.SetConstraints(LayoutAnchors(self.elementLb, true, true, true, false))
name='elementLb', parent=self, pos=wxPoint(8, 70), size=wxSize(175, 128), style=0, validator=wxDefaultValidator) self.elementLb.SetConstraints(LayoutAnchors(self.elementLb, True, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
184), size=wxSize(80, 17), style=0)
200), size=wxSize(88, 17), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(88, 184), size=wxSize(80, 17), style=0)
pos=wxPoint(96, 200), size=wxSize(88, 17), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(96, 8), size=wxSize(366, 16),
pos=wxPoint(96, 8), size=wxSize(376, 16),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.styleDefST.SetConstraints(LayoutAnchors(self.styleDefST, true, true, true, false))
self.styleDefST.SetConstraints(LayoutAnchors(self.styleDefST, True, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='staticLine1', parent=self, pos=wxPoint(48, 62), size=wxSize(120, 2), style=wxLI_HORIZONTAL) self.staticLine1.SetConstraints(LayoutAnchors(self.staticLine1, true, true, true, false))
name='staticLine1', parent=self, pos=wxPoint(48, 64), size=wxSize(135, 0), style=wxLI_HORIZONTAL) self.staticLine1.SetConstraints(LayoutAnchors(self.staticLine1, True, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(176, 56), size=wxSize(146, 104),
parent=self, pos=wxPoint(199, 56), size=wxSize(160, 120),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.panel3.SetConstraints(LayoutAnchors(self.panel3, false, true, true, false))
self.panel3.SetConstraints(LayoutAnchors(self.panel3, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(330, 56), size=wxSize(114, 104),
parent=self, pos=wxPoint(364, 56), size=wxSize(114, 120),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.panel4.SetConstraints(LayoutAnchors(self.panel4, false, true, true, false))
self.panel4.SetConstraints(LayoutAnchors(self.panel4, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(176, 161), size=wxSize(143, 40),
parent=self, pos=wxPoint(202, 177), size=wxSize(149, 40),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.panel1.SetConstraints(LayoutAnchors(self.panel1, false, true, true, false))
self.panel1.SetConstraints(LayoutAnchors(self.panel1, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(330, 162), size=wxSize(112, 40),
parent=self, pos=wxPoint(364, 178), size=wxSize(112, 40),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.panel2.SetConstraints(LayoutAnchors(self.panel2, false, true, true, false))
self.panel2.SetConstraints(LayoutAnchors(self.panel2, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
parent=self, pos=wxPoint(8, 208), size=wxSize(435, 207),
parent=self, pos=wxPoint(8, 224), size=wxSize(469, 191),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
self.stc.SetConstraints(LayoutAnchors(self.stc, true, true, true, true))
self.stc.SetConstraints(LayoutAnchors(self.stc, True, True, True, True))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='okBtn', parent=self, pos=wxPoint(282, 423), size=wxSize(75,
name='okBtn', parent=self, pos=wxPoint(316, 423), size=wxSize(75,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
label='Cancel', name='cancelBtn', parent=self, pos=wxPoint(366,
label='Cancel', name='cancelBtn', parent=self, pos=wxPoint(400,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
23), size=wxSize(13, 19), style=0)
23), size=wxSize(16, 19), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
size=wxSize(105, 21), style=0, validator=wxDefaultValidator,
size=wxSize(101, 21), style=0, validator=wxDefaultValidator,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
size=wxSize(91, 21), style=0, validator=wxDefaultValidator,
size=wxSize(80, 21), style=0, validator=wxDefaultValidator,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='sizeOkBtn', parent=self.panel2, pos=wxPoint(90, 17), size=wxSize(21, 21), style=0)
name='sizeOkBtn', parent=self.panel2, pos=wxPoint(80, 17), size=wxSize(32, 21), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='faceOkBtn', parent=self.panel1, pos=wxPoint(122, 18), size=wxSize(21, 21), style=0)
name='faceOkBtn', parent=self.panel1, pos=wxPoint(117, 18), size=wxSize(32, 21), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(8, 16), size=wxSize(72, 16), style=0)
pos=wxPoint(8, 16), size=wxSize(96, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
size=wxSize(89, 21), style=0, validator=wxDefaultValidator,
size=wxSize(96, 21), style=0, validator=wxDefaultValidator,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
label='ok', name='fgColOkBtn', parent=self.panel3, pos=wxPoint(96, 32), size=wxSize(21, 21), style=0)
label='ok', name='fgColOkBtn', parent=self.panel3, pos=wxPoint(104, 32), size=wxSize(32, 21), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(100, 16), size=wxSize(37, 16), style=0)
pos=wxPoint(112, 15), size=wxSize(38, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(120, 31), size=wxSize(16, 16), style=0)
pos=wxPoint(136, 31), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(8, 56), size=wxSize(72, 16), style=0)
pos=wxPoint(8, 64), size=wxSize(96, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
name='bgColCb', parent=self.panel3, pos=wxPoint(8, 72), size=wxSize(89, 21), style=0, validator=wxDefaultValidator,
name='bgColCb', parent=self.panel3, pos=wxPoint(8, 80), size=wxSize(96, 21), style=0, validator=wxDefaultValidator,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
label='ok', name='bgColOkBtn', parent=self.panel3, pos=wxPoint(96, 72), size=wxSize(21, 21), style=0)
label='ok', name='bgColOkBtn', parent=self.panel3, pos=wxPoint(104, 80), size=wxSize(32, 21), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(0, 0), size=wxSize(112, 99), style=0) self.staticBox2.SetConstraints(LayoutAnchors(self.staticBox2, false, true, true, false))
pos=wxPoint(0, 0), size=wxSize(112, 112), style=0) self.staticBox2.SetConstraints(LayoutAnchors(self.staticBox2, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(68, 11), size=wxSize(37, 16), style=0)
pos=wxPoint(64, 12), size=wxSize(40, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(88, 43), size=wxSize(16, 16), style=0)
pos=wxPoint(88, 48), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(88, 59), size=wxSize(16, 16), style=0)
pos=wxPoint(88, 70), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(88, 75), size=wxSize(16, 16), style=0)
pos=wxPoint(88, 92), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(8, 75), size=wxSize(72, 16), style=0)
pos=wxPoint(8, 92), size=wxSize(80, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(8, 59), size=wxSize(72, 16), style=0)
pos=wxPoint(8, 70), size=wxSize(80, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(8, 43), size=wxSize(72, 16), style=0)
pos=wxPoint(8, 48), size=wxSize(80, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
27), size=wxSize(72, 16), style=0)
27), size=wxSize(80, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(120, 71), size=wxSize(16, 16), style=0)
pos=wxPoint(136, 79), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(0, 0), size=wxSize(142, 99), style=0) self.staticBox1.SetConstraints(LayoutAnchors(self.staticBox1, false, true, true, false))
pos=wxPoint(0, 0), size=wxSize(157, 112), style=0) self.staticBox1.SetConstraints(LayoutAnchors(self.staticBox1, False, True, True, False))
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(120, 0), size=wxSize(16, 16), style=0)
pos=wxPoint(117, 0), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
pos=wxPoint(88, 0), size=wxSize(16, 16), style=0)
pos=wxPoint(80, 0), size=wxSize(16, 16), style=0)
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
if wxPlatform == '__WXMSW__': self.style_font_size = 8 else: self.style_font_size = 10
self.style_font_size = 8 self.style_font_size = platformSettings[wxPlatform][1]
def __init__(self, parent, langTitle, lang, configFile, STCsToUpdate=()): self.stc_title = 'wxStyledTextCtrl Style Editor' self.stc_title = 'wxStyledTextCtrl Style Editor - %s' % langTitle if wxPlatform == '__WXMSW__': self.style_font_size = 8 else: self.style_font_size = 10 self._init_ctrls(parent) self.lang = lang self.configFile = configFile self.style = '' self.styleNum = 0 self.names = [] self.values = {} self.STCsToUpdate = STCsToUpdate self._blockUpdate = false
commonDefsFile = 'common.defs.%s'%(wxPlatform == '__WXMSW__' and 'msw' or 'gtk')
commonDefsFile = 'common.defs.%s'%(platformSettings[wxPlatform][0])
def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newStyles = [] styleItems = styleIdNames.items() + settingsIdNames.items() styleItems.sort() idx = 0 for num, name in styleItems: styleNumIdxMap[num] = idx if not styleDict.has_key(num): styleDict[num] = '' newStyles.append(writeProp(num, styleDict[num], lang)) idx = idx + 1 # Set background colour to reduce flashing effect on refresh or page switch bkCol = None if styleDict.has_key(0): prop = styleDict[0] else: prop = styleDict[wxSTC_STYLE_DEFAULT] names, vals = parseProp(prop) if 'back' in names: bkCol = strToCol(vals['back']%commonDefs) if bkCol is None: bkCol = wxWHITE stc.SetBackgroundColour(bkCol) # Set the styles on the wxSTC
if home: home = os.path.join(home, '.boa')
if home: home = os.path.join(home, '.boa-constructor') if not os.path.exists(home): home = '.' else: home = '.'
def initSTC(stc, config, lang): """ Main module entry point. Initialise a wxSTC from given config file.""" (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo) = initFromConfig(config, lang) setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords)
filename = os.path.normcase(self.model.assertLocalFile())
filename = self.model.assertLocalFile()
def addBreakPoint(self, lineNo, temp=0, notify_debugger=1): filename = os.path.normcase(self.model.assertLocalFile())
self.cache = []
self.cache = {} def destroy(self): self.cache = {}
def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent, ftpConn, ftpObj, root): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props) self.isFolder = isFolder self.ftpConn = ftpConn self.ftpObj = ftpObj self.root = root self.cache = []
Utils.ShowMessage(None, 'FTP Error', resp)
Utils.ShowMessage(None, 'FTP Error', str(resp))
def openList(self, root = None): try: items = self.ftpConn.dir(self.ftpObj.whole_name()) except ftplib.error_perm, resp: Utils.ShowMessage(None, 'FTP Error', resp) raise if not root: root = self.root self.cache = {} result = [] for obj in items: if obj.name in ('', '.', '..'): continue z = self.createChildNode(obj, self.root) if z: result.append(z) self.cache[obj.name] = z return result
props['host'], props['port'])
props['host'], props['port'], props['passive'])
def openList(self): if not self.connected: try: props = self.properties self.ftpConn.connect(props['username'], props['passwd'], props['host'], props['port']) except Exception, message: wxMessageBox(`message.args`, 'Error on connect') raise return FTPItemNode.openList(self, self)
wx.OK | wxCENTER | wx.ICON_ERROR, self)
wx.OK | wx.CENTER | wx.ICON_ERROR, self)
def OnEnter(self, event): for nv in self.nameValues: if nv.editing: try: nv.propEditor.inspectorPost(False) except Exception, err: wx.MessageBox('%s: %s'%(err.__class__, str(err)), 'Unable to post, please correct.', wx.OK | wxCENTER | wx.ICON_ERROR, self)
currMeth.append(line)
try: currMeth.append(line) except: print 'PASTE ERROR', input
if line[:8] == ' def ': meth = line[8:string.find(line, '(', 9)] currMeth = [meth] methList.append(currMeth)
print 'coll init meth', meth[0]
if line[:8] == ' def ': meth = line[8:string.find(line, '(', 9)] currMeth = [meth] methList.append(currMeth)
newName = self.newObjName(clss)
newName = self.newObjName(clss, newNames) newNames.append(newName)
if line[:8] == ' def ': meth = line[8:string.find(line, '(', 9)] currMeth = [meth] methList.append(currMeth)
def newObjName(self, className):
def newObjName(self, className, additionalNames = None):
def newObjName(self, className): """ Return a name for a control unique in the scope of the model. """
if additionalNames is None: additionalNames = []
def newObjName(self, className): """ Return a name for a control unique in the scope of the model. """
return Utils.getValidName(self.objects.keys(), newName)
return Utils.getValidName(self.objects.keys() + additionalNames, newName)
def newObjName(self, className): """ Return a name for a control unique in the scope of the model. """
('Escape', wxID_CTRLPARENT)):
('Escape', wxID_CTRLPARENT), ('Copy', wxID_EDITCOPY), ('Paste', wxID_EDITPASTE)):
def __init__(self, parent, inspector, model, compPal, companionClass, dataView): args = self.setupArgs(model.main, model.mainConstr.params, ['parent', 'id'], parent, companionClass) wxFrame.__init__(self, parent, -1, args['title'], args['pos'], args['size'])#, args['style'], args['name']) InspectableObjectCollectionView.__init__(self, inspector, model, compPal)
self.inspector.OnDelete(event)
print 'OnControlDelete' ctrls = [] if self.selection: ctrls = [self.selection.name] elif self.multiSelection: ctrls = map(lambda sel: sel.name, self.multiSelection) for ctrlName in ctrls: self.deleteCtrl(ctrlName)
def OnControlDelete(self, event): self.inspector.OnDelete(event)
except socket.error:
except (EmptyResponseError, socket.error):
def call_exit(server=server): try: server.exit_debugger() except socket.error: # Already stopped. pass
self.SetIcon(wxIcon(toPyPath('Images/Icons/Boa.ico'), wxBITMAP_TYPE_ICO))
self.SetIcon(IS.load('Images/Icons/Boa.ico'))
def __init__(self, parent, id, app):
conf = ConfigParser() if wxPlatform == '__WXMSW__': plat = 'msw' else: plat = 'gtk' conf.read(Preferences.pyPath+'/Explorer.'+plat+'.cfg')
conf = Utils.createAndReadConfig('Explorer')
def __init__(self, parent, id, app):
self.zopePalettePage = ZopePalettePage(self.palette, PaletteMapping.zopePalette[0], 'Images/Palette/'+transpSF, self, self.widgetSet, self.senders, self.componentSB) self.zopePalettePage.addToggleBitmaps(PaletteMapping.zopePalette[2], None, None) self.palettePages.append(self.zopePalettePage)
if conf.has_option('explorer', 'zope'): self.zopePalettePage = ZopePalettePage(self.palette, PaletteMapping.zopePalette[0], 'Images/Palette/'+transpSF, self, self.widgetSet, self.senders, self.componentSB) self.zopePalettePage.addToggleBitmaps(PaletteMapping.zopePalette[2], None, None) self.palettePages.append(self.zopePalettePage)
def __init__(self, parent, id, app):
def addTool(self, filename, text, help, func):
def addTool(self, filename, text, help, func, toggle = false):
def addTool(self, filename, text, help, func): mID = wxNewId() self.toolBar.AddTool(mID, IS.load(filename+'.bmp'), #wxBitmap(filename+'.bmp', wxBITMAP_TYPE_BMP), shortHelpString = text) EVT_TOOL(self, mID, func)
shortHelpString = text)
shortHelpString = text, isToggle = toggle)
def addTool(self, filename, text, help, func): mID = wxNewId() self.toolBar.AddTool(mID, IS.load(filename+'.bmp'), #wxBitmap(filename+'.bmp', wxBITMAP_TYPE_BMP), shortHelpString = text) EVT_TOOL(self, mID, func)
palette.addTool('Images/Shared/Compose', 'Compose', ' ', palette.OnHelpToolClick) palette.addTool('Images/Shared/Inherit', 'Inherit', ' ', palette.OnHelpToolClick)
cId = palette.addTool('Images/Shared/Compose', 'Compose', ' ', palette.OnComposeClick, toggle = true) iId = palette.addTool('Images/Shared/Inherit', 'Inherit', ' ', palette.OnInheritClick, toggle = true) palette.toolBar.ToggleTool(cId, true) palette.toolBar.EnableTool(iId, false)
def __init__(self, palette): wID = wxNewId() self.selComp = wxCheckBox(palette.toolBar, wID, ' (Nothing selected)', size = wxSize(120, 20)) self.selComp.Enable(false) EVT_CHECKBOX(self.selComp, wID, palette.OnUncheckComponent) palette.toolBar.AddControl(self.selComp)
def __del__(self): print '__del__', self.__class__.__name__
def __del__(self): print '__del__', self.__class__.__name__
def main():
def main(args=None): global auth_str, debug_server, connection, serving if args is None: args = sys.argv[1:] if args and '--zope' in args: from ZopeScriptDebugServer import ZopeScriptDebugServer debug_server = ZopeScriptDebugServer() else: debug_server = DebugServer() connection = DebuggerConnection(debug_server) connection.allowEnvChanges()
def main(): # Create an authentication string, always 40 characters. global auth_str auth_str = sha.new(str(whrandom.random())).hexdigest() # port is 0 to allocate any port. server = TaskingTCPServer(('', 0), DebugRequestHandler) port = int(server.socket.getsockname()[1]) # Tell the client what port to connect to and the auth string to send. sys.stdout.write('%010d %s%s' % (port, auth_str, os.linesep)) sys.stdout.flush() # Provide a hard breakpoint hook. Use it like this: # if hasattr(sys, 'breakpoint'): sys.breakpoint() sys.breakpoint = debug_server.set_trace def serve_forever(server): while 1: server.handle_request() def startDaemon(target, args=()): t = threading.Thread(target=target, args=args) t.setDaemon(1) t.start() startDaemon(serve_forever, (server,)) startDaemon(streamFlushThread) startDaemon(debug_server.servicerThread) # Serve until the stdin pipe closes. #print 'serving until stdin returns EOF' #sys.stdin.read() global serving; serving = 1 while serving: time.sleep(0.1) sys.exit(0)
global auth_str
def main(): # Create an authentication string, always 40 characters. global auth_str auth_str = sha.new(str(whrandom.random())).hexdigest() # port is 0 to allocate any port. server = TaskingTCPServer(('', 0), DebugRequestHandler) port = int(server.socket.getsockname()[1]) # Tell the client what port to connect to and the auth string to send. sys.stdout.write('%010d %s%s' % (port, auth_str, os.linesep)) sys.stdout.flush() # Provide a hard breakpoint hook. Use it like this: # if hasattr(sys, 'breakpoint'): sys.breakpoint() sys.breakpoint = debug_server.set_trace def serve_forever(server): while 1: server.handle_request() def startDaemon(target, args=()): t = threading.Thread(target=target, args=args) t.setDaemon(1) t.start() startDaemon(serve_forever, (server,)) startDaemon(streamFlushThread) startDaemon(debug_server.servicerThread) # Serve until the stdin pipe closes. #print 'serving until stdin returns EOF' #sys.stdin.read() global serving; serving = 1 while serving: time.sleep(0.1) sys.exit(0)
global serving; serving = 1 while serving:
while serving:
def startDaemon(target, args=()): t = threading.Thread(target=target, args=args) t.setDaemon(1) t.start()
parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300),
parent=prnt, pos=wxPoint(323, 272), size=wxSize(364, 273),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
self._init_utils()
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
name='findTxt', parent=self, pos=wxPoint(88, 4), size=wxSize(249, 21), style=0, value='')
name='findTxt', parent=self, pos=wxPoint(88, 4), size=wxSize(239, 23), style=0, value='')
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
pos=wxPoint(88, 28), size=wxSize(269, 21), style=0, value='')
pos=wxPoint(88, 28), size=wxSize(269, 23), style=0, value='')
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
size=wxSize(249, 21), style=0, validator=wxDefaultValidator,
size=wxSize(239, 23), style=0, validator=wxDefaultValidator,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
parent=self, pos=wxPoint(88, 74), size=wxSize(269, 21), style=0,
parent=self, pos=wxPoint(88, 74), size=wxSize(269, 23), style=0,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
point=wxPoint(8, 103), size=wxSize(112, 64),
point=wxPoint(8, 103), size=wxSize(104, 64),
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))
size=wxSize(112, 64), style=wxRA_SPECIFY_COLS,
size=wxSize(104, 64), style=wxRA_SPECIFY_COLS,
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273))