bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def valueAsExpr(self): return 'wxSize(%d, %d)'%(self.value.x, self.value.y) | defvalueAsExpr(self):return'wxSize(%d,%d)'%(self.value.x,self.value.y) | 28,700 |
def getValue(self): if self.editorCtrl: try: tuplePos = eval(self.editorCtrl.getValue()) except Exception, mess: | def getValue(self): if self.editorCtrl: try: tuplePos = eval(self.editorCtrl.getValue()) except Exception, mess: | 28,701 |
def getStyle(self): return ClassPropEdit.getStyle(self) + [esDialog, esReadOnly] | def getStyle(self): return ClassPropEdit.getStyle(self) + [esDialog, esReadOnly] | 28,702 |
def edit(self, event): data = wxFontData() dlg = wxFontDialog(self.parent, data) dlg.GetFontData().SetInitialFont(self.value) if dlg.ShowModal() == wxID_OK: self.value = dlg.GetFontData().GetChosenFont() self.propWrapper.setValue(self.value) self.obj.Refresh() dlg.Destroy() | def edit(self, event): data = wxFontData() dlg = wxFontDialog(self.parent, data) dlg.GetFontData().SetInitialFont(self.value) if dlg.ShowModal() == wxID_OK: self.value = dlg.GetFontData().GetChosenFont() self.propWrapper.setValue(self.value) self.obj.Refresh() dlg.Destroy() | 28,703 |
def valueAsExpr(self): fnt = self.value return 'wxFont(%d, %d, %d, %d, %d, %s)'%(fnt.GetPointSize(), fnt.GetFamily(), fnt.GetStyle(), fnt.GetWeight(), fnt.GetUnderlined(), `fnt.GetFaceName()`) | def valueAsExpr(self): fnt = self.value return 'wxFont(%d, %s, %s, %s, %s, %s)'%(\ fnt.GetPointSize(), self.fontFamily[fnt.GetFamily()], self.fontStyle[fnt.GetStyle()], self.fontWeight[fnt.GetWeight()], fnt.GetUnderlined() and 'true' or 'false', `fnt.GetFaceName()`) class AnchorPropEdit(OptionedPropEdit): def getStyle... | 28,704 |
def inspectorEdit(self): self.editorCtrl = ButtonIEC(self, self.value) self.editorCtrl.createControl(self.parent, self.idx, self.width, self.edit) constrs = self.companion.constructor() if constrs.has_key(self.name): constr = self.companion.textConstr.params[constrs[self.name]] else: | def inspectorEdit(self): self.editorCtrl = ButtonIEC(self, self.value) self.editorCtrl.createControl(self.parent, self.idx, self.width, self.edit) constrs = self.companion.constructor() if constrs.has_key(self.name): constr = self.companion.textConstr.params[constrs[self.name]] else: | 28,705 |
def edit(self, event): dlg = wxFileDialog(self.parent, 'Choose an image', '.', '', 'Bitmaps (*.bmp)|*.bmp', wxOPEN) try: if dlg.ShowModal() == wxID_OK: self.bmpPath = dlg.GetPath() self.value = wxBitmap(self.bmpPath, wxBITMAP_TYPE_BMP) self.setCtrlValue(self.value, self.value) | def edit(self, event): dlg = wxFileDialog(self.parent, 'Choose an image', '.', '', 'Bitmaps (*.bmp)|*.bmp', wxOPEN) try: if dlg.ShowModal() == wxID_OK: self.bmpPath = dlg.GetPath() self.value = wxBitmap(self.bmpPath, wxBITMAP_TYPE_BMP) self.setCtrlValue(self.value, self.value) | 28,706 |
## def inspectorPost(self): | ##def inspectorPost(self): | 28,707 |
def run(self, args = ''): """ Excecute the current saved image of the application. """ if self.savedAs: cwd = os.path.abspath(os.getcwd()) os.chdir(os.path.dirname(self.filename)) oldErr = sys.stderr oldSysPath = sys.path[:] try: sys.path.append(Preferences.pyPath) cmd = '"%s" %s %s'%(sys.executable, os.path.basename(s... | def run(self, args = ''): """ Excecute the current saved image of the application. """ if self.savedAs: cwd = os.path.abspath(os.getcwd()) os.chdir(os.path.dirname(self.filename)) oldErr = sys.stderr oldSysPath = sys.path[:] try: sys.path.append(Preferences.pyPath) cmd = '"%s" %s %s'%(sys.executable, os.path.basename(s... | 28,708 |
def readComponents(self): """ Setup object collection dict by parsing all designer controlled methods """ self.objectCollections = {} module = self.getModule() if module.classes.has_key(self.main): main = module.classes[self.main] for oc in self.identifyCollectionMethods(): codeSpan = main.methods[oc] codeBody = module... | def readComponents(self): """ Setup object collection dict by parsing all designer controlled methods """ self.objectCollections = {} module = self.getModule() if module.classes.has_key(self.main): main = module.classes[self.main] for oc in self.identifyCollectionMethods(): codeSpan = main.methods[oc] codeBody = module... | 28,709 |
def crashLog(self): err = ErrorStack.crashError(os.path.splitext(self.filename)[0]+'.trace') if err: import ErrorStackFrm esf = ErrorStackFrm.ErrorStackMF(self.editor, self.app, self.editor) esf.updateCtrls(err) esf.Show(true) return esf else: wx.wxLogError('Trace file not found. Run with command line param -T') return... | def crashLog(self): err = ErrorStack.crashError(os.path.splitext(self.filename)[0]+'.trace') if err: frm = self.editor.erroutFrm if frm: frm.updateCtrls(err) if not frm.IsShown(): frm.Show(true) return frm else: wx.wxLogError('Trace file not found. Run with command line param -T') return None | 28,710 |
def __init__(self, parent, ID, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = wxDefaultValidator, name = "genbutton"): if style == 0: style = wxNO_BORDER wxControl.__init__(self, parent, ID, pos, size, style, validator, name) | def __init__(self, parent, ID, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = wxDefaultValidator, name = "genbutton"): if style == 0: style = wxNO_BORDER wxControl.__init__(self, parent, ID, pos, size, style, validator, name) | 28,711 |
def __init__(self, parent, ID, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = wxDefaultValidator, name = "genbutton"): if style == 0: style = wxNO_BORDER wxControl.__init__(self, parent, ID, pos, size, style, validator, name) | def __init__(self, parent, ID, label, pos = wxDefaultPosition, size = wxDefaultSize, style = 0, validator = wxDefaultValidator, name = "genbutton"): if style == 0: style = wxNO_BORDER wxControl.__init__(self, parent, ID, pos, size, style, validator, name) | 28,712 |
def InitColours(self): faceClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) textClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNTEXT) self.faceDnClr = faceClr self.SetBackgroundColour(faceClr) self.SetForegroundColour(textClr) | def InitColours(self): if no_sys_col: faceClr = wxColour(192, 192, 192) textClr = wxColour(0, 0, 0) else: faceClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) textClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNTEXT) self.faceDnClr = faceClr self.SetBackgroundColour(faceClr) self.... | 28,713 |
def InitColours(self): faceClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) textClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNTEXT) self.faceDnClr = faceClr self.SetBackgroundColour(faceClr) self.SetForegroundColour(textClr) | def InitColours(self): faceClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNFACE) textClr = wxSystemSettings_GetSystemColour(wxSYS_COLOUR_BTNTEXT) self.faceDnClr = faceClr self.SetBackgroundColour(faceClr) self.SetForegroundColour(textClr) | 28,714 |
def Notify(self): evt = wxGenButtonEvent(wxEVT_COMMAND_BUTTON_CLICKED, self.GetId()) evt.SetIsDown(not self.up) evt.SetButtonObj(self) self.evtToSend.append(evt) | def Notify(self): evt = wxGenButtonEvent(wxEVT_COMMAND_BUTTON_CLICKED, self.GetId()) evt.SetIsDown(not self.up) evt.SetButtonObj(self) self.evtToSend.append(evt) | 28,715 |
def openFileDlg(self, filter='*.py', curdir='.', curfile=''): if filter == '*.py': filter = Preferences.exDefaultFilter | def openFileDlg(self, filter='*.py', curdir='.', curfile=''): if filter == '*.py': filter = Preferences.exDefaultFilter | 28,716 |
def getValue(self): if self.editorCtrl: value = self.editorCtrl.getValue() if type(value) is StringType: value = `self.editorCtrl.getValue()` else: value = self.getCtrlValue() | def getValue(self): if self.editorCtrl: value = self.editorCtrl.getValue() if type(value) is StringType: value = `self.editorCtrl.getValue()` else: value = self.getCtrlValue() | 28,717 |
def getValue(self): # XXX Currently returning the old value in case of error because # XXX an exception here cannot be gracefully handled yet. # XXX Specifically closing the frame with the focus on the if self.editorCtrl: value = self.editorCtrl.getValue() if value != self.value: if self.companion.designer.objects.has_... | def if not value: message = 'Invalid name for Python object' wxLogError(message) return self.value getValue(self): if not value: message = 'Invalid name for Python object' wxLogError(message) return self.value # if not value: message = 'Invalid name for Python object' wxLogError(message) return self.value XXX if not va... | 28,718 |
def getValue(self): # XXX Currently returning the old value in case of error because # XXX an exception here cannot be gracefully handled yet. # XXX Specifically closing the frame with the focus on the if self.editorCtrl: value = self.editorCtrl.getValue() if value != self.value: if self.companion.designer.objects.has_... | defgetValue(self):#XXXCurrentlyreturningtheoldvalueincaseoferrorbecause#XXXanexceptionherecannotbegracefullyhandledyet.#XXXSpecificallyclosingtheframewiththefocusontheifself.editorCtrl:value=self.editorCtrl.getValue()ifvalue!=self.value:ifself.companion.designer.objects.has_key(value):wxLogError('Namealreadyusedbyanoth... | 28,719 |
def isTraceable(self, frame): """Indicates whether the debugger should step into the given frame. | def isTraceable(self, frame): """Indicates whether the debugger should step into the given frame. | 28,720 |
def copyFromFS(self, fsNode, fn=''): if fsNode.isFolderish(): if not fn: fn = os.path.basename(fsNode.resourcepath[:-1]) self.newFolder(fn) else: if not fn: fn = os.path.basename(fsNode.resourcepath) newNode = self.createChildNode(self.resourcepath+fn, 0, self.properties) self.checkResp(newNode.resource.put(fsNode.load... | def copyFromFS(self, fsNode, fn=''): if fsNode.isFolderish(): if not fn: fn = os.path.basename(fsNode.resourcepath[:-1]) self.newFolder(fn) else: if not fn: fn = os.path.basename(fsNode.resourcepath) newNode = self.createChildNode(self.resourcepath+fn, self.properties) self.checkResp(newNode.resource.put(fsNode.load())... | 28,721 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,722 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,723 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def if Preferences.useDebugger == 'new': filename = self.model.filename self.breaks = bplist.getFileBreakpoints(filename) __init__(self, if Preferences.useDebugger == 'new': filename = self.model.filename self.breaks = bplist.getFileBreakpoints(filename) parent, if Preferences.useDebugger == 'new': filename = self.mo... | 28,724 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,725 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,726 |
def checkWxPyTips(self, module, name): if module.imports.has_key('wxPython.wx'): if wx.__dict__.has_key(name): t = type(wx.__dict__[name]) if t is types.ClassType: if wx.__dict__[name].__init__.__doc__: return wx.__dict__[name].__init__.__doc__ return '' | def checkWxPyTips(self, module, name): if module.imports.has_key('wxPython.wx'): if wx.__dict__.has_key(name): t = type(wx.__dict__[name]) if t is types.ClassType: return wx.__dict__[name].__init__.__doc__ or '' return '' | 28,727 |
def checkWxPyMethodTips(self, module, cls, name): if module.imports.has_key('wxPython.wx'): if wx.__dict__.has_key(cls): Cls = wx.__dict__[cls] if hasattr(Cls, name): meth = getattr(Cls, name) if meth.__doc__: return meth.__doc__ return '' | def checkWxPyMethodTips(self, module, cls, name): if module.imports.has_key('wxPython.wx'): if wx.__dict__.has_key(cls): Cls = wx.__dict__[cls] if hasattr(Cls, name): meth = getattr(Cls, name) return meth.__doc__ or '' return '' | 28,728 |
def getAttribSig(self, module, cls, attrib, meth): if cls.attributes.has_key(attrib): objtype = cls.attributes[attrib][0].signature if module.classes.has_key(objtype) and \ module.classes[objtype].methods.has_key(meth): return module.classes[objtype].methods[meth].signature klass = wxNamespace.getWxClass(objtype) if kl... | def getAttribSig(self, module, cls, attrib, meth): if cls.attributes.has_key(attrib): objtype = cls.attributes[attrib][0].signature if module.classes.has_key(objtype) and \ module.classes[objtype].methods.has_key(meth): return module.classes[objtype].methods[meth].signature klass = wxNamespace.getWxClass(objtype) if kl... | 28,729 |
def getCodeCompOptions(self, word, rootWord, matchWord, lnNo): """ Overwritten Mixin method, returns list of code completion names """ module = self.model.getModule() cls = module.getClassForLineNo(lnNo) if cls: objPth = string.split(rootWord, '.') | def getCodeCompOptions(self, word, rootWord, matchWord, lnNo): """ Overwritten Mixin method, returns list of code completion names """ module = self.model.getModule() cls = module.getClassForLineNo(lnNo) if cls: objPth = string.split(rootWord, '.') | 28,730 |
def getCodeNamespace(self, module, block): names = [] names.extend(module.imports.keys()) names.extend(module.class_order) names.extend(module.function_order) names.extend(module.global_order) names.extend(__builtins__.keys()) if block: names.extend(block.localnames()) | def getCodeNamespace(self, module, block): names = [] names.extend(module.imports.keys()) names.extend(module.class_order) names.extend(module.function_order) names.extend(module.global_order) names.extend(__builtins__.keys()) if block: names.extend(block.localnames()) | 28,731 |
def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | 28,732 |
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) if self.model.editor.debugger and self.model.editor.debugger.isDebugBrowsing(): word, line, lnNo, wordStart = self.getStyledWordElems(start, length) self.IndicatorSetColour(0, wxRED) try: val = self.model.... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) if self.model.editor.debugger and self.model.editor.debugger.isDebugBrowsing(): word, line, lnNo, wordStart = self.getStyledWordElems(start, length) self.IndicatorSetColour(0, wxRED) try: val = self.model.... | 28,733 |
def getBrowsableText(self, line, piv, lnStPs): if self.model.editor.debugger and self.model.editor.debugger.isDebugBrowsing(): return idWord(line, piv, lnStPs, object_delim) else: return BrowseStyledTextCtrlMix.getBrowsableText(self, line, piv, lnStPs) | def getBrowsableText(self, line, piv, lnStPs): debugger = self.model.editor.debugger if debugger and debugger.isDebugBrowsing(): return idWord(line, piv, lnStPs, object_delim) else: return BrowseStyledTextCtrlMix.getBrowsableText(self, line, piv, lnStPs) | 28,734 |
def setInitialBreakpoints(self): for bp in self.breaks.values(): self.MarkerAdd(bp.line -1, brkPtMrk) | def setInitialBreakpoints(self): for bp in self.breaks.values(): self.MarkerAdd(bp.line -1, brkPtMrk) | 28,735 |
def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | 28,736 |
def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | 28,737 |
def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | def deleteBreakPoint(self, lineNo): if not self.breaks.has_key(lineNo): return | 28,738 |
def tryLoadBreakpoints(self): import pickle fn = self.getBreakpointFilename() update = false if os.path.exists(fn): self.breaks = pickle.load(open(fn)) self.setInitialBreakpoints() BrkPt = bdb.Breakpoint for lineNo, brk in self.breaks.items(): if self.model.editor.debugger: self.model.editor.debugger.set_break(brk.file... | def tryLoadBreakpoints(self): import pickle fn = self.getBreakpointFilename() if Preferences.useDebugger == 'new': rval = self.breaks.loadBreakpoints(fn) if rval: self.setInitialBreakpoints() return rval elif Preferences.useDebugger == 'old': update = false if os.path.exists(fn): self.breaks = pickle.load(open(fn)) s... | 28,739 |
def tryLoadBreakpoints(self): import pickle fn = self.getBreakpointFilename() update = false if os.path.exists(fn): self.breaks = pickle.load(open(fn)) self.setInitialBreakpoints() BrkPt = bdb.Breakpoint for lineNo, brk in self.breaks.items(): if self.model.editor.debugger: self.model.editor.debugger.set_break(brk.file... | def tryLoadBreakpoints(self): import pickle fn = self.getBreakpointFilename() update = false if os.path.exists(fn): self.breaks = pickle.load(open(fn)) self.setInitialBreakpoints() BrkPt = bdb.Breakpoint for lineNo, brk in self.breaks.items(): if self.model.editor.debugger: self.model.editor.debugger.set_break(brk.file... | 28,740 |
def saveBreakpoints(self): # XXX This is not yet called automatically on saving a module, should it be ? import pickle fn = self.getBreakpointFilename() if len(self.breaks): pickle.dump(self.breaks, open(fn, 'w')) elif os.path.exists(fn): os.remove(fn) | def saveBreakpoints(self): # XXX This is not yet called automatically on saving a module, should it be ? fn = self.getBreakpointFilename() if len(self.breaks): pickle.dump(self.breaks, open(fn, 'w')) elif os.path.exists(fn): os.remove(fn) | 28,741 |
def saveBreakpoints(self): # XXX This is not yet called automatically on saving a module, should it be ? import pickle fn = self.getBreakpointFilename() if len(self.breaks): pickle.dump(self.breaks, open(fn, 'w')) elif os.path.exists(fn): os.remove(fn) | def saveBreakpoints(self): # XXX This is not yet called automatically on saving a module, should it be ? import pickle fn = self.getBreakpointFilename() if len(self.breaks): pickle.dump(self.breaks, open(fn, 'w')) elif os.path.exists(fn): os.remove(fn) | 28,742 |
def setStepPos(self, lineNo): if self.stepPos != lineNo: if self.stepPos: self.MarkerDelete(self.stepPos, stepPosMrk) if lineNo: self.MarkerAdd(lineNo, stepPosMrk) self.stepPos = lineNo | def setStepPos(self, lineNo): if self.stepPos != lineNo: if self.stepPos: self.MarkerDelete(self.stepPos, stepPosMrk) if lineNo: self.MarkerAdd(lineNo, stepPosMrk) self.stepPos = lineNo | 28,743 |
def OnMarginClick(self, event): if event.GetMargin() == 1: lineClicked = self.GetLineFromPos(event.GetPosition()) + 1 if self.breaks.has_key(lineClicked): self.deleteBreakPoint(lineClicked) else: self.addBreakPoint(lineClicked) else: FoldingStyledTextCtrlMix.OnMarginClick(self, event) | def OnMarginClick(self, event): if event.GetMargin() == 1: lineClicked = self.LineFromPosition(event.GetPosition()) + 1 if Preferences.useDebugger == 'old': if self.breaks.has_key(lineClicked): self.deleteBreakPoint(lineClicked) else: self.addBreakPoint(lineClicked) elif Preferences.useDebugger == 'new': if self.breaks... | 28,744 |
def OnSetBreakPoint(self, event): line = self.GetLineFromPos(self.GetCurrentPos()) + 1 if self.breaks.has_key(line): self.deleteBreakPoint(line) else: self.addBreakPoint(line) | def OnSetBreakPoint(self, event): line = self.GetLineFromPos(self.GetCurrentPos()) + 1 if self.breaks.has_key(line): self.deleteBreakPoint(line) else: self.addBreakPoint(line) | 28,745 |
def OnRunToCursor(self, event): line = self.GetLineFromPos(self.GetCurrentPos()) + 1 if not self.breaks.has_key(line): self.addBreakPoint(line, 1) if self.model.defaultName == 'App': self.model.editor.debugger.debug_file(self.model.filename) elif self.model.app: self.model.editor.debugger.debug_file(self.model.app.file... | def OnRunToCursor(self, event): line = self.GetLineFromPos(self.GetCurrentPos()) + 1 if not self.breaks.has_key(line): self.addBreakPoint(line, 1) if self.model.defaultName == 'App': self.model.editor.debugger.debug_file(self.model.filename) elif self.model.app: self.model.editor.debugger.debug_file(self.model.app.file... | 28,746 |
def OnContextHelp(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs) startLine = start-lnStPs word = line[startLine:startLine+length] Help.showContextHelp(self.model.ed... | def OnContextHelp(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.PositionFromLine(lnNo) line = self.GetCurLine()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs) startLine = start-lnStPs word = line[startLine:startLine+length] Help.showContextHelp(self.model.editor, s... | 28,747 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,748 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,749 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,750 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,751 |
def OnAddCommentLine(self, event): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) ls = self.GetLineStartPos(ln) self.InsertText(ls, '#-------------------------------------------' '------------------------------------'+'\n') self.SetCurrentPosition(ls+4) | def OnAddCommentLine(self, event): pos = self.GetCurrentPos() ln = self.LineFromPosition(pos) ls = self.PositionFromLine(ln) self.InsertText(ls, '#-------------------------------------------' '------------------------------------'+'\n') self.SetCurrentPosition(ls+4) | 28,752 |
def OnAddCommentLine(self, event): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) ls = self.GetLineStartPos(ln) self.InsertText(ls, '#-------------------------------------------' '------------------------------------'+'\n') self.SetCurrentPosition(ls+4) | def OnAddCommentLine(self, event): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) ls = self.GetLineStartPos(ln) self.InsertText(ls, '#-------------------------------------------' '------------------------------------'+'\n') self.SetCurrentPosition(ls+4) | 28,753 |
def OnAddClassAtCursor(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetLine(lnNo)#self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs, object_delim) startLine = start-lnStPs word = line[startLine:startLine+leng... | def OnAddClassAtCursor(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetLine(lnNo)#self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs, object_delim) startLine = start-lnStPs word = line[startLine:startLine+leng... | 28,754 |
def OnAddClassAtCursor(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetLine(lnNo)#self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs, object_delim) startLine = start-lnStPs word = line[startLine:startLine+leng... | def OnAddClassAtCursor(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.GetLineStartPos(lnNo) line = self.GetLine(lnNo)#self.GetCurrentLineText()[0] piv = pos - lnStPs start, length = idWord(line, piv, lnStPs, object_delim) startLine = start-lnStPs word = line[startLine:startLine+leng... | 28,755 |
def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | 28,756 |
def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | 28,757 |
def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | def OnModified(self, event): modType = event.GetModificationType() if modType == (wxSTC_MOD_CHANGEMARKER): pass linesAdded = event.GetLinesAdded() | 28,758 |
def OnCloseWindow(self, event): """ When the Designer closes, the code generation process is started. General Inspector and Designer clean-up """ if not self.saveOnClose and self.confirmCancel and wxMessageBox( 'Cancel Designer session?', 'Cancel', wxYES_NO | wxICON_WARNING) == wxID_YES: return if self.IsIconized(): ... | def OnCloseWindow(self, event): """ When the Designer closes, the code generation process is started. General Inspector and Designer clean-up """ if not self.saveOnClose and self.confirmCancel and wxMessageBox( 'Cancel Designer session?', 'Cancel', wxYES_NO | wxICON_WARNING, parent=self) == wxNO: self.saveOnClose = tr... | 28,759 |
def reassignFileDlg(): import FileDlg wx.wxFileDialog = FileDlg.wxBoaFileDialog | def reassignFileDlg(): import FileDlg wx.wxFileDialog = FileDlg.wxBoaFileDialog | 28,760 |
def isFolderish(self): return self.isDir() or filter(lambda se, rp=self.resourcepath: se[1](rp), self.subExplorerReg['file']) | def isFolderish(self): return self.isDir() or filter(lambda se, rp=self.resourcepath: se[1](rp), self.subExplorerReg['file']) | 28,761 |
def copyFileFrom(self, node): """ Copy node into self (only called for folders)""" import shutil if not node.isDir(): if node.resourcepath == os.path.join(self.resourcepath, node.name): return | def copyFileFrom(self, node): """ Copy node into self (only called for folders)""" import shutil if not node.isDir(): if node.resourcepath == os.path.join(self.resourcepath, node.name): return | 28,762 |
def load(self): return open(self.resourcepath).read() | def load(self): return open(self.resourcepath).read() | 28,763 |
def save(self, filename, data): # XXX move dialog to gui layer if self.resourcepath != filename: self.resourcepath = filename self.name = os.path.basename(self.resourcepath) try: f = open(self.resourcepath, 'w') except IOError, message: dlg = wx.wxMessageDialog(self.editor, 'Could not save\n'+message.strerror, 'Error',... | def save(self, filename, data): # XXX move dialog to gui layer if self.resourcepath != filename: self.resourcepath = filename self.name = os.path.basename(self.resourcepath) try: f = open(self.resourcepath, 'wb') except IOError, message: dlg = wx.wxMessageDialog(self.editor, 'Could not save\n'+message.strerror, 'Error'... | 28,764 |
def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%d/%s/source.html'%(props['host'], props['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | 28,765 |
def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | 28,766 |
def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | 28,767 |
def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | def generatePage(self): import urllib url = 'http://%s:%d/%s/source.html'%(self.model.zopeObj.properties['host'], self.model.zopeObj.properties['httpport'], self.model.zopeObj.whole_name()) f = urllib.urlopen(url) return f.read() | 28,768 |
def _authenticate(self): h = self.headers if auth_str: s = h.get('authentication') if not s or s.split()[-1] != auth_str: raise 'Unauthorized', ( 'Authentication header missing or incorrect') | def _authenticate(self): h = self.headers if auth_str: s = h.get('authentication') if not s or s.split()[-1] != auth_str: raise 'Unauthorized', ( 'Authentication header missing or incorrect') | 28,769 |
def AddToolButtonBmpObject(frame, toolbar, thebitmap, hint, triggermeth, theToggleBitmap=wxNullBitmap): nId = wxNewId() toolbar.AddTool(nId, thebitmap, theToggleBitmap, shortHelpString = hint) EVT_TOOL(frame, nId, triggermeth) return nId | def AddToolButtonBmpObject(frame, toolbar, thebitmap, hint, triggermeth, theToggleBitmap=wxNullBitmap): nId = wxNewId() toolbar.AddTool(nId, thebitmap, theToggleBitmap, shortHelpString = hint) EVT_TOOL(frame, nId, triggermeth) return nId | 28,770 |
def showTip(frame, forceShow = 0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getint('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow: ... | def showTip(frame, forceShow=0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getint('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow: tp... | 28,771 |
def createAndReadConfig(name, forPlatform = 1): """ Return an initialised ConfigFile object """ confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '') if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.read(confFil... | def createAndReadConfig(name, forPlatform=1): """ Return an initialised ConfigFile object """ confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '') if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.read(confFile)... | 28,772 |
def createAndReadConfig(name, forPlatform = 1): """ Return an initialised ConfigFile object """ confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '') if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.read(confFil... | def createAndReadConfig(name, forPlatform = 1): """ Return an initialised ConfigFile object """ confFile = os.path.join(Preferences.rcPath, '%s%s.cfg' % (name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '') if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.re... | 28,773 |
def createAndReadConfig(name, forPlatform = 1): """ Return an initialised ConfigFile object """ confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '') if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.read(confFil... | def createAndReadConfig(name, forPlatform = 1): """ Return an initialised ConfigFile object """ confFile = '%s/%s%s.cfg' % (Preferences.rcPath, name, forPlatform and wx.wxPlatform == '__WXMSW__' and '.msw' \ or forPlatform and '.gtk' or '')) if not _sharedConfs.has_key(confFile): conf = ConfigParser() conf.read(confFi... | 28,774 |
def getIndentBlock(): if Preferences.STCUseTabs: return '\t' else: return Preferences.STCIndent*' ' | def getIndentBlock(): if Preferences.STCUseTabs: return '\t' else: return Preferences.STCIndent*' ' | 28,775 |
def getIndentBlock(): if Preferences.STCUseTabs: return '\t' else: return Preferences.STCIndent*' ' | def getIndentBlock(): if Preferences.STCUseTabs: return '\t' else: return Preferences.STCIndent*' ' | 28,776 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,777 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,778 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,779 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,780 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,781 |
def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | def buildPluginExecList(): if not Preferences.pluginPaths: return [] pluginExecList = [] pluginPathGlobs = [] for ppth in Preferences.pluginPaths: initPluginGlobals = readInitPluginGlobals(ppth) pluginPathGlobs.append( (os.path.join(ppth, '*.plug-in.py'), initPluginGlobals) ) for globPath, initPluginGlobals in plugin... | 28,782 |
def find_dotted_module(name, path=None): import imp segs = string.split(name, '.') while segs: file, filename, desc = imp.find_module(segs[0], path) del segs[0] path = [filename] return file, filename, desc | def find_dotted_module(name, path=None): import imp segs = string.split(name, '.') while segs: file, filename, desc = imp.find_module(segs[0], path) del segs[0] path = [filename] return file, filename, desc | 28,783 |
def selectBeforePopup(event): """Ensures the item the mouse is pointing at is selected before a popup. Works with both single-select and multi-select lists.""" ctrl = event.GetEventObject() if isinstance(ctrl, wxListCtrl): n, flags = ctrl.HitTest(event.GetPosition()) if n >= 0: if not ctrl.GetItemState(n, wxLIST_STATE... | def selectBeforePopup(event): """Ensures the item the mouse is pointing at is selected before a popup. Works with both single-select and multi-select lists.""" ctrl = event.GetEventObject() if isinstance(ctrl, wxListCtrl): n, flags = ctrl.HitTest(event.GetPosition()) if n >= 0: if not ctrl.GetItemState(n, wxLIST_STATE... | 28,784 |
def createImage(self, filename, ext): if ext == '.bmp': | defcreateImage(self,filename,ext):ifext=='.bmp': | 28,785 |
def createImage(self, filename, ext): if ext == '.bmp': | def createImage(self, filename, ext): if ext == '.bmp': | 28,786 |
def __init__(self, rootpath, defaultArchive, images = None): print 'ZippedImageStore' ImageStore.__init__(self, rootpath, images) self.archives = {} self.addArchive(defaultArchive) | def __init__(self, rootpath, defaultArchive, images = None): ImageStore.__init__(self, rootpath, images) self.archives = {} self.addArchive(defaultArchive) | 28,787 |
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) | 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) | 28,788 |
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) | 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) | 28,789 |
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.... | 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.... | 28,790 |
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.... | 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.... | 28,791 |
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.... | 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.... | 28,792 |
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.... | 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.... | 28,793 |
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.... | 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.... | 28,794 |
def OnCloseWindow(self, event): if self.paletteToolbar: self.paletteToolbar.DeleteTool(self.toolIdx) | def OnCloseWindow(self, event): if self.paletteToolbar: self.paletteToolbar.DeleteTool(self.toolIdx) | 28,795 |
def OnSelect(self, event): print 'select' self.Show(true) if self.IsIconized(): self.Iconize(false) self.Raise() | def def OnFindFocus(self, event): self.searchCtrl.SetFocus() def OnCloseHelp(self, event): self.Close() OnSelect(self, def OnFindFocus(self, event): self.searchCtrl.SetFocus() def OnCloseHelp(self, event): self.Close() event): def OnFindFocus(self, event): self.searchCtrl.SetFocus() def OnCloseHelp(self, event): s... | 28,796 |
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() | def kill(self): server = self.server if server is not None: def call_exit(server=server): try: server.exit_debugger() except socket.error: pass self.taskHandler.addTask(call_exit) self.server = None self.input_stream = None self.error_stream = None process = self.process self.process = None if process is not None: # p... | 28,797 |
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 = wxProgressDi... | 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 = wxProgressDi... | 28,798 |
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 | def getNumRowsCols(self, childCompanion): maxRows = 0 maxCols = 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 | 28,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.