rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
if tcl.method == 'AddTool': | if tcl.method == 'DoAddTool': return {'ItemId': 'id', 'Label': 'label', 'Bitmap': 'bitmap', 'BitmapDisabled': 'bmpDisabled', 'Kind': 'kind', 'ShortHelp': 'shortHelp', 'LongHelp': 'longHelp'} elif tcl.method == 'AddTool': | def constructor(self): tcl = self.textConstrLst[self.index] if tcl.method == 'AddTool': return {'ItemId': 'id', 'Bitmap': 'bitmap', 'PushedBitmap': 'pushedBitmap', 'IsToggle': 'isToggle', 'ShortHelpString': 'shortHelpString', 'LongHelpString': 'longHelpString'} elif tcl.method == 'AddSeparator': return {} elif tcl.meth... | da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py |
if method == 'AddTool': | if method == 'DoAddTool': return {'id': winId, 'label': `''`, 'bitmap': 'wxNullBitmap', 'bmpDisabled': 'wxNullBitmap', 'kind': 'wxITEM_NORMAL', 'shortHelp': `newItemName`, 'longHelp': `''`} elif method == 'AddTool': | def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod newItemName, winId = self.newUnusedItemNames(wId) | da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py |
def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): | def designTimeSource(self, position='wxDefaultPosition', size='wxDefaultSize'): | def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'style': '0', 'name': `self.name`} | da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py |
kv = string.split(param, '=') if len(kv) == 2: result[string.strip(kv[0])] = string.strip(kv[1]) | try: sidx = string.find(param, '=') except ValueError: result[`cnt`] = string.strip(param[sidx+1:]) | def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: kv = string.split(param, '=') if len(kv) == 2: result[string.strip(kv[0])] = string.strip(kv[1]) else: result[`cnt`] = string.strip(kv[0]) cnt = cnt + 1 return result | ca1ac353ebc763177c822e8b0f7914fab6b2e76f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ca1ac353ebc763177c822e8b0f7914fab6b2e76f/methodparse.py |
result[`cnt`] = string.strip(kv[0]) | result[string.strip(param[:sidx])] = string.strip(param[sidx+1:]) | def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: kv = string.split(param, '=') if len(kv) == 2: result[string.strip(kv[0])] = string.strip(kv[1]) else: result[`cnt`] = string.strip(kv[0]) cnt = cnt + 1 return result | ca1ac353ebc763177c822e8b0f7914fab6b2e76f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ca1ac353ebc763177c822e8b0f7914fab6b2e76f/methodparse.py |
del self.editor | def updateNameFromTransport(self): if self.transport: self.filename = self.transport.getURI() | def destroy(self): | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
self.data = string.join(lines, '\012') | strlines = [] for line in lines: strlines.append(str(line)) self.data = string.join(strlines, '\012') | def setDataFromLines(self, lines): data = self.data self.data = string.join(lines, '\012') self.modified = self.modified or self.data != data | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
def load(self, notify = true): | def load(self, notify=true): | def load(self, notify = true): """ Loads contents of data from file specified by self.filename. Note: Load's not really used much currently cause objects are constructed with their data as parameter """ if not self.transport: raise 'No transport for loading' | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
self.transport.save(filename, self.data, mode=self.fileModes[1], | self.transport.save(filename, self.data, mode=self.fileModes[1], | def save(self, overwriteNewer=false): """ Saves contents of data to file specified by self.filename. """ if not self.transport: raise 'No transport for saving' | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
self.save() | try: self.save(overwriteNewer=true) except: self.filename = oldname raise | def saveAs(self, filename): """ Saves contents of data to file specified by filename. Override this to catch name changes. """ # Catch transport changes from Explorers.Explorer import splitURI, getTransport protO, catO, resO, uriO = splitURI(self.filename) protN, catN, resN, uriN = splitURI(filename) | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
def localFilename(self, filename=None): if filename is None: filename = self.filename from Explorers.Explorer import splitURI return splitURI(filename)[2] | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py | ||
self.data = '' | self.data = self.getDefaultData() | def new(self): self.data = '' self.savedAs = false self.modified = true self.update() self.notify() | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py |
def rejectConflictChange(self, conflict): self.applyChangeBlock(conflict, 0) | e211e0e3a9754bf1a25efe30b88e63fb5604bb3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e211e0e3a9754bf1a25efe30b88e63fb5604bb3f/EditorModels.py | ||
getattr(self, command)(*args) | getattr(self, command)(*args) | def proceedAndRequestStatus(self, command, temp_breakpoint=0, args=()): """Executes one non-blocking command then returns getStatusSummary(). Blocking.""" if temp_breakpoint: self.addBreakpoint(temp_breakpoint[0], temp_breakpoint[1], 1) if command: allowed = ('set_continue', 'set_step', 'set_step_over', 'set_step_out'... | 7b291a837a9b307335e1f391c3572c8eec84727d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7b291a837a9b307335e1f391c3572c8eec84727d/IsolatedDebugger.py |
self.addBreakpoint(**bkr) | self.addBreakpoint(**brk) | def setAllBreakpoints(self, brks): """brks is a list of mappings containing the keys: filename, lineno, temporary, enabled, and cond. Non-blocking.""" self.clear_all_breaks() if brks: for brk in brks: self.addBreakpoint(**bkr) | 7b291a837a9b307335e1f391c3572c8eec84727d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7b291a837a9b307335e1f391c3572c8eec84727d/IsolatedDebugger.py |
self.set_step() | def set_trace(self): """Start debugging from the caller's frame. | 7eb772d4fb57151ad010e52c59484d5cdcc720f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7eb772d4fb57151ad010e52c59484d5cdcc720f1/IsolatedDebugger.py | |
name, wId = self.newUnusedItemNames(0) | wId = Utils.windowIdentifier(self.designer.GetName(), self.name) | def addIds(self, lst): if self.id is not None: if self.id in EventCollections.reservedWxIds: name, wId = self.newUnusedItemNames(0) else: wId = self.id lst.append(wId) | ec4197617dd1c179104c5e387d67d75a0e1a1a0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ec4197617dd1c179104c5e387d67d75a0e1a1a0d/BaseCompanions.py |
def OnFind(self, event): s, e = self.GetSelection() if s == e: txt = self.lastSearchPattern else: txt = self.GetSelectedText() dlg = wxTextEntryDialog(self.model.editor, 'Enter text:', 'Find in module', txt) try: if dlg.ShowModal() == wxID_OK: self.lastSearchResults = Search.findInText(\ string.split(self.GetText(), se... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | ||
('Compile', self.OnCompile, self.compileBmp, keyDefs['Compile'])) | ('Check source', self.OnCompile, self.compileBmp, keyDefs['CheckSource'])) | def __init__(self, parent, model): if hasattr(model, 'app') and model.app: a2 = (('Run application', self.OnRunApp, self.runAppBmp, keyDefs['RunApp']),) else: a2 = () a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', s... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
def getAttribs(self, cls, partial): | def getWxAttribs(self, cls, mems = None): if mems is None: mems = [] for base in cls.__bases__: self.getWxAttribs(base, mems) mems.extend(dir(cls)) return mems def getAttribs(self, cls): | def getAttribs(self, cls, partial): loopCls = cls list = [] while loopCls: list.extend(loopCls.methods.keys() + loopCls.attributes.keys()) if len(loopCls.super): prnt = loopCls.super[0] if type(prnt) == type(self): # :) loopCls = prnt else: loopCls = None else: loopCls = None | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
list = [] | lst = [] | def getAttribs(self, cls, partial): loopCls = cls list = [] while loopCls: list.extend(loopCls.methods.keys() + loopCls.attributes.keys()) if len(loopCls.super): prnt = loopCls.super[0] if type(prnt) == type(self): # :) loopCls = prnt else: loopCls = None else: loopCls = None | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
list.extend(loopCls.methods.keys() + loopCls.attributes.keys()) | lst.extend(loopCls.methods.keys() + loopCls.attributes.keys()) | def getAttribs(self, cls, partial): loopCls = cls list = [] while loopCls: list.extend(loopCls.methods.keys() + loopCls.attributes.keys()) if len(loopCls.super): prnt = loopCls.super[0] if type(prnt) == type(self): # :) loopCls = prnt else: loopCls = None else: loopCls = None | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
sel = '' if partial: for key in list: if key[:len(partial)] == partial: sel = key break uniqueDct = {} for attr in list: uniqueDct[attr] = None return uniqueDct.keys(), sel | return lst | def getAttribs(self, cls, partial): loopCls = cls list = [] while loopCls: list.extend(loopCls.methods.keys() + loopCls.attributes.keys()) if len(loopCls.super): prnt = loopCls.super[0] if type(prnt) == type(self): # :) loopCls = prnt else: loopCls = None else: loopCls = None | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
def checkCallTip(self): print 'checkCallTip' 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] print word, line[piv-... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | ||
def checkCallTip(self): print 'checkCallTip' 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] print word, line[piv-... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | ||
def checkCodeComp(self): 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] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | ||
list, sel = self.getAttribs(cls, partial) | lst = self.getAttribs(cls) else: prevdot = string.rfind(line, '.', 0, dot) if prevdot != -1 and line[prevdot-4:prevdot] == 'self': partial = line[dot+1:piv] attrib = line[prevdot+1:dot] if cls.attributes.has_key(attrib): objtype = cls.attributes[attrib][0].signature if self.typeMap.has_key(objtype): lst = self.typeMa... | def checkCodeComp(self): 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] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.AutoCompShow(string.join(list, ' ')) | self.AutoCompShow(string.join(lst, ' ')) | def checkCodeComp(self): 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] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.AutoCompShow(len(partial), string.join(list, ' ')) if sel: if new_stc: print 'auto selecting', partial, sel | self.AutoCompShow(len(partial), string.join(lst, ' ')) if partial and new_stc: | def checkCodeComp(self): 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] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.AutoCompSelect(partial) | if partial and new_stc: self.AutoCompSelect(partial) | def checkCodeComp(self): 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] | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
if line[start-5: start] == 'self.': | if self.model.editor.debugger: self.model.editor.debugger.add_watch(word, true) elif line[start-5: start] == 'self.': | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.GotoLine(cls.attributes[word][0].start-1) | gotoLine = cls.attributes[word][0].start-1 | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.GotoLine(cls.methods[word].start-1) | gotoLine = cls.methods[word].start-1 | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.GotoLine(block[0].start-1) | gotoLine = block[0].start-1 | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
self.GotoLine(block.start-1) | gotoLine = block.start-1 if gotoLine != -1: self.model.editor.addBrowseMarker(lineNo) self.GotoLine(gotoLine) | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py |
def goto(self, gotoLine): print 'jumping to line', gotoLine self.GotoLine(gotoLine) def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) if self.model.editor.debugger: word, line, lnNo, wordStart = self.getStyledWordElems(start, length) self.IndicatorSetCo... | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module Currently only the open module is inspected, classes declared outside the scope of the active module are inaccessible. """ module = self.model.getModule() if line[start-5: start] =... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | |
def setStepPos(self, lineNo): if self.stepPos != lineNo: if self.stepPos: self.MarkerDelete(self.stepPos, stepPosMrk) if lineNo: | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | ||
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) if self.model.editor.debugger: word, line, lnNo, wordStart = self.getStyledWordElems(start, length) self.IndicatorSetColour(0, wxRED) try: val = self.model.editor.debugger.getVarValue(word) except Exceptio... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) if self.model.editor.debugger: word, line, lnNo, wordStart = self.getStyledWordElems(start, length) self.IndicatorSetColour(0, wxRED) try: val = self.model.editor.debugger.getVarValue(word) except Exceptio... | 30c5b445955ab6c843b5ae49ae2fca620b4c4550 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/30c5b445955ab6c843b5ae49ae2fca620b4c4550/PySourceView.py | |
t, v = sys.exc_info() | t, v = sys.exc_info()[:2] | def notifyException(self): t, v = sys.exc_info() evt = DebuggerCommEvent(wxEVT_DEBUGGER_EXC, self.win_id) evt.SetExc(t, v) self.event_handler.AddPendingEvent(evt) | 454990a1332bb513e67ebc2720225ce6ee4248a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/454990a1332bb513e67ebc2720225ce6ee4248a2/InProcessClient.py |
elif state in ('drag', 'end'): | elif state in ('drag', 'end') and self.circle: | def drawCircle(self, event, state, dc=None): if not dc: if state == 'start': self.circle = self.getImgPos(event) + (0,) elif state in ('drag', 'end'): x1, y1, x2, y2 = self.circle[:2] + self.getImgPos(event) rad = math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)) + 0.5 self.circle = (x1, y1, rad) if state == 'end': self.snapsho... | a946081488b6f5f4737c1356bf43cf34d9e48e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a946081488b6f5f4737c1356bf43cf34d9e48e64/ImageEditor.plug-in.py |
self.mDC.DrawEllipse(x1-rad+0.5, y1-rad+0.5, rad*2, rad*2) | self.mDC.DrawEllipse(int(x1-rad+0.5), int(y1-rad+0.5), int(rad*2), int(rad*2)) | def drawCircle(self, event, state, dc=None): if not dc: if state == 'start': self.circle = self.getImgPos(event) + (0,) elif state in ('drag', 'end'): x1, y1, x2, y2 = self.circle[:2] + self.getImgPos(event) rad = math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)) + 0.5 self.circle = (x1, y1, rad) if state == 'end': self.snapsho... | a946081488b6f5f4737c1356bf43cf34d9e48e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a946081488b6f5f4737c1356bf43cf34d9e48e64/ImageEditor.plug-in.py |
dc.DrawEllipse(xoffset + (x-rad+0.5) * scale, yoffset + (y-rad+0.5) * scale, rad*scale*2, rad*scale*2) | dc.DrawEllipse(int(xoffset + (x-rad+0.5) * scale), int(yoffset + (y-rad+0.5) * scale), int(rad*scale*2), int(rad*scale*2)) | def drawCircle(self, event, state, dc=None): if not dc: if state == 'start': self.circle = self.getImgPos(event) + (0,) elif state in ('drag', 'end'): x1, y1, x2, y2 = self.circle[:2] + self.getImgPos(event) rad = math.sqrt(pow(x2-x1, 2) + pow(y2-y1, 2)) + 0.5 self.circle = (x1, y1, rad) if state == 'end': self.snapsho... | a946081488b6f5f4737c1356bf43cf34d9e48e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a946081488b6f5f4737c1356bf43cf34d9e48e64/ImageEditor.plug-in.py |
def OnPenBrushWindowPaint(self, event): dc = wxPaintDC(self.penBrushWindow) dc.SetBrush(self.brush) dc.SetBackground(self.bgbsh) dc.SetPen(self.invpen) dc.BeginDrawing() try: cs = self.penBrushWindow.GetClientSize() dc.DrawRectangle(0, 0, cs.x, cs.y) dc.SetPen(self.fgpen) dc.DrawRectangle(cs.x/3-3, cs.y/3-3, cs.x/3+8, ... | a946081488b6f5f4737c1356bf43cf34d9e48e64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a946081488b6f5f4737c1356bf43cf34d9e48e64/ImageEditor.plug-in.py | ||
pass | dlg.Destroy() | def OnFDEndLabelEdit(self, event): newText = event.GetText() event.Skip() if newText != self.oldLabelVal:# and isinstance(self.list.node, ZopeItemNode): self.node.renameItem(self.oldLabelVal, newText) self.refreshCurrent() self.selectItemNamed(newText) self.EnsureVisible(self.selected) | 370b90150f57aab1f348cb1b20710e370ae708a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/370b90150f57aab1f348cb1b20710e370ae708a5/FileDlg.py |
self.html.SetPage(credits_html % ( Utils.toPyPath('Images/Shared/PythonPowered.gif'), Utils.toPyPath('Images/Shared/wxPyButton.png'), Utils.toPyPath('Images/Shared/wxWinButton.png'))) | self.html.SetPage(credits_html % ('memory:PythonPowered.png', 'memory:wxPyButton.png', 'memory:wxWinButton.png')) | def OnLinkClick(self, event): clicked = event.linkinfo[0] if clicked == 'Credits': self.html.SetPage(credits_html % ( Utils.toPyPath('Images/Shared/PythonPowered.gif'), Utils.toPyPath('Images/Shared/wxPyButton.png'), Utils.toPyPath('Images/Shared/wxWinButton.png'))) elif clicked == 'Back': self.setPage() #self.html.His... | 58ede2a4f7e8aaff67d93fcb3fce3c703502fe05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/58ede2a4f7e8aaff67d93fcb3fce3c703502fe05/About.py |
Utils.toPyPath('Images/Shared/Boa.jpg'), __version__.version, | 'memory:Boa.jpg', __version__.version, | def setPage(self): self.html.SetPage((about_html % ( Utils.toPyPath('Images/Shared/Boa.jpg'), __version__.version, '', about_text % (sys.version, wxPlatform, wxPython.__version__)))) | 58ede2a4f7e8aaff67d93fcb3fce3c703502fe05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/58ede2a4f7e8aaff67d93fcb3fce3c703502fe05/About.py |
self.html.SetPage(about_html % (Utils.toPyPath('Images/Shared/Boa.jpg'), | self.html.SetPage(about_html % ('memory:Boa.jpg', | def setPage(self): self.html.SetPage(about_html % (Utils.toPyPath('Images/Shared/Boa.jpg'), __version__.version, progress_text % (self.progressId, self.gaugePId), '')) | 58ede2a4f7e8aaff67d93fcb3fce3c703502fe05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/58ede2a4f7e8aaff67d93fcb3fce3c703502fe05/About.py |
while self._live and sys and len(sys.modules) < self.moduleTotal: | while self and self._live and sys and len(sys.modules) < self.moduleTotal: | def monitorModuleCount(self): self._live = true lastCnt = 0 if sys and len(sys.modules) >= self.moduleTotal: wx.wxPostEvent(self, ModCntUpdateEvent(self.moduleTotal, 'importing')) else: while self._live and sys and len(sys.modules) < self.moduleTotal: mc = len(sys.modules) if mc > lastCnt: lastCnt = mc wx.wxPostEvent(s... | 58ede2a4f7e8aaff67d93fcb3fce3c703502fe05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/58ede2a4f7e8aaff67d93fcb3fce3c703502fe05/About.py |
lines = StringIO(str(self.GetSelectedText())).readlines() | lines = StringIO(self.GetSelectedText()).readlines() | def processSelectionBlock(self, func): if self.GetUseTabs(): indtBlock = '\t' else: indtBlock = self.GetTabWidth()*' ' | 822ee2901bc02883bd298f0c812959ae2ecaf7cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/822ee2901bc02883bd298f0c812959ae2ecaf7cd/SourceViews.py |
from ZopeLib import ZopeViews class ZopePTHTMLView(ZopeViews.ZopeHTMLView): viewName = 'Source.html' def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%s@%s:%d/%s/source.html'%(props['username'], props['passwd'], props['host'], props['httpport'], self.model.zopeObj.whole_name()) import u... | Controllers.modelControllerReg[ZopePageTemplateFSModel] = PageTemplateFSController | def OnSave(self, event): ZopeController.OnSave(self, event) # trigger a reload after saving so that errors saved as comments in the # source are displayed self.OnReload(event) | 60d1f48af79a1686b0b481c375de3e6d3978b5d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/60d1f48af79a1686b0b481c375de3e6d3978b5d7/ProdPageTemplates.plug-in.py |
additionalViews = (ZopeViews.ZopeUndoView, ZopeViews.ZopeSecurityView, ZopePTHTMLView, ZopeViews.ZopeHTMLView) | additionalViews = (ZopeViews.ZopeUndoView, ZopeViews.ZopeSecurityView, ZopePTHTMLView, ZopeViews.ZopeHTMLView) | def generatePage(self): props = self.model.zopeObj.properties url = 'http://%s:%s@%s:%d/%s/source.html'%(props['username'], props['passwd'], props['host'], props['httpport'], self.model.zopeObj.whole_name()) import urllib f = urllib.urlopen(url) return f.read() | 60d1f48af79a1686b0b481c375de3e6d3978b5d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/60d1f48af79a1686b0b481c375de3e6d3978b5d7/ProdPageTemplates.plug-in.py |
if root and root[0] != '/': root = '/'+root | def createChildNode(self, name, props): root = props['root'] if root and root[0] != '/': root = '/'+root itm = SSHItemNode(name, props, root, self.clipboard, true, EditorHelper.imgNetDrive, self) itm.category = name itm.bookmarks = self.bookmarks return itm | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py | |
EditorHelper.imgNetDrive, self) | EditorHelper.imgNetDrive) | def createChildNode(self, name, props): root = props['root'] if root and root[0] != '/': root = '/'+root itm = SSHItemNode(name, props, root, self.clipboard, true, EditorHelper.imgNetDrive, self) itm.category = name itm.bookmarks = self.bookmarks return itm | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props) | def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, None, props) | def __init__(self, name, props, resourcepath, clipboard, isFolder, imgIdx, parent): ExplorerNodes.ExplorerNode.__init__(self, name, resourcepath, clipboard, imgIdx, parent, props) self.isFolder = isFolder | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
return ExplorerNodes.ExplorerNode.getURI(self) + (self.isFolder and '/' or '') | title = self.getTitle() if title and title[0] != '/': title = '/' + title if self.isFolder: title = title + '/' return '%s://%s%s'%(self.protocol, self.category, title) | def getURI(self): return ExplorerNodes.ExplorerNode.getURI(self) + (self.isFolder and '/' or '') | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
EditorHelper.imgTextModel, self) | EditorHelper.imgTextModel) | def createChildNode(self, name, isFolder, props, respath=''): if not respath: respath = self.resourcepath+'/'+name item = SSHItemNode(name, props, respath, self.clipboard, isFolder, isFolder and EditorHelper.imgFolder or \ EditorHelper.imgTextModel, self) if not isFolder: item.imgIdx = Controllers.identifyFile(name, lo... | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
cmd = 'scp %s %s' % (os.path.basename(fsNode.resourcepath), | cmd = 'scp "%s" "%s"' % (os.path.basename(fsNode.resourcepath), | def copyFromFS(self, fsNode, fn=''): if not fn: fn = os.path.basename(fsNode.resourcepath) cwd = os.getcwd() os.chdir(os.path.dirname(fsNode.resourcepath)) try: cmd = 'scp %s %s' % (os.path.basename(fsNode.resourcepath), self.remotePath(fn)) self.execSCP(cmd) finally: os.chdir(cwd) | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
cmd = 'scp %s %s' % (self.remotePath(''), fn) | cmd = 'scp "%s" "%s"' % (self.remotePath(''), fn) | def copyToFS(self, fsFolderNode, fn=''): if not fn: fn = os.path.basename(self.resourcepath) cwd = os.getcwd() os.chdir(fsFolderNode.resourcepath) try: cmd = 'scp %s %s' % (self.remotePath(''), fn) self.execSCP(cmd) finally: os.chdir(cwd) | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
try: return open(fn, mode).read() finally: os.remove(fn) | if os.path.exists(fn): try: return open(fn, mode).read() finally: os.remove(fn) else: raise ExplorerNodes.TransportLoadError( 'File was not downloaded locally.', self.resourcepath) | def load(self, mode='rb'): from FileExplorer import PyFileNode import tempfile fn = tempfile.mktemp() try: self.copyToFS(PyFileNode('', os.path.dirname(fn), None, -1, None, None), os.path.basename(fn)) try: return open(fn, mode).read() finally: os.remove(fn) except Exception, error: raise ExplorerNodes.TransportLoadErr... | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
if self.parent: self.parent.copyFromFS(PyFileNode('', fn, None, -1, None, None), name) else: raise 'No Parent!' | parentDir = os.path.dirname(self.resourcepath) parentName = os.path.basename(parentDir) parentSSHNode = self.createChildNode(parentName, 1, self.properties, parentDir) parentSSHNode.copyFromFS(PyFileNode('', fn, None, -1), name) | def save(self, filename, data, mode='wb'): from FileExplorer import PyFileNode import tempfile name = os.path.basename(self.resourcepath) fn = tempfile.mktemp() try: open(fn, mode).write(data) try: if self.parent: self.parent.copyFromFS(PyFileNode('', fn, None, -1, None, None), name) else: raise 'No Parent!' finally: o... | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
self.properties, '/'+respath) | self.properties, respath) | def getNodeFromPath(self, respath): if not respath: respath = '/' | 3af71f938e067450e2e1521c21c4101462ef9992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3af71f938e067450e2e1521c21c4101462ef9992/SSHExplorer.py |
key = event.KeyCode() | key = event.GetKeyCode() | def OnKeyPressed(self, event): key = event.KeyCode() if key == 13: if self.defaultActionIdx != -1: self.actions[self.defaultActionIdx][1](event) return event.Skip() | 557479112d432fc5c084250d84f9f48e044a1619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/557479112d432fc5c084250d84f9f48e044a1619/EditorViews.py |
key = event.KeyCode() | key = event.GetKeyCode() | def OnKeyPressed(self, event): key = event.KeyCode() if key == 13: if self.defaultActionIdx != -1: self.actions[self.defaultActionIdx][1](event) event.Skip() | 557479112d432fc5c084250d84f9f48e044a1619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/557479112d432fc5c084250d84f9f48e044a1619/EditorViews.py |
key = event.KeyCode() | key = event.GetKeyCode() | def OnKeyPressed(self, event): key = event.KeyCode() if key == 13: if self.defaultActionIdx != -1: self.actions[self.defaultActionIdx][1](event) | 557479112d432fc5c084250d84f9f48e044a1619 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/557479112d432fc5c084250d84f9f48e044a1619/EditorViews.py |
[''] + [' def %s(%s):' % (method_name, method_params)] + method_body | pre_blank + [' def %s(%s):' % (method_name, method_params)] + \ method_body + post_blank | [''] + [' def %s(%s):' % (method_name, method_params)] + method_body | 2937f69ad62b7d09201db4c1694887931d22715e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2937f69ad62b7d09201db4c1694887931d22715e/moduleparse.py |
shellEdit, dummy = Utils.wxProxyPanel(self.tabs, ShellEditor.ShellEditor, -1) | tabPage, shellEdit = \ Utils.wxProxyPanel(self.tabs, ShellEditor.ShellEditor, -1) | def addShellPage(self): """ Adds the interactive interpreter to the editor """ if wxPlatform == '__WXGTK__': # A panel between the STC and notebook reduces flicker shellEdit, dummy = Utils.wxProxyPanel(self.tabs, ShellEditor.ShellEditor, -1) | 8986fb90764273bd1937c7979f2f59caa86801ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8986fb90764273bd1937c7979f2f59caa86801ef/Editor.py |
shellEdit = ShellEditor.ShellEditor(self.tabs, -1) self.tabs.AddPage(shellEdit, 'Shell') | shellEdit = tabPage = ShellEditor.ShellEditor(self.tabs, -1) self.tabs.AddPage(tabPage, 'Shell') | ## def OnWinSize(evt, win=shellEdit): | 8986fb90764273bd1937c7979f2f59caa86801ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8986fb90764273bd1937c7979f2f59caa86801ef/Editor.py |
self.addModulePage(model, zopeObj.whole_name(), defZopeDocModelViews, adtZopeDocModelViews, ZopeDocumentModel.imgIdx) | self.addModulePage( model, zopeObj.whole_name(), defZopeDocModelViews, adtZopeDocModelViews, ZopeDocumentModel.imgIdx) | def openZopeDocument(self, zopeConn, zopeObj): | 7176bad8ff0a35af8625b72eec1b81f73c6702d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7176bad8ff0a35af8625b72eec1b81f73c6702d0/Editor.py |
modulePage.destroy() | def closeModule(self, modulePage): idx = modulePage.tIdx name = modulePage.model.filename if self.modules.has_key(name): if modulePage.model.views.has_key('Designer'): modulePage.model.views['Designer'].close() modulePage.model.refreshFromViews() if modulePage.model.modified: if Utils.yesNoDialog(self, 'Close module', ... | 7176bad8ff0a35af8625b72eec1b81f73c6702d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7176bad8ff0a35af8625b72eec1b81f73c6702d0/Editor.py | |
self.notebook.Refresh() | def refresh(self): pass self.notebook.Refresh() | 7176bad8ff0a35af8625b72eec1b81f73c6702d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7176bad8ff0a35af8625b72eec1b81f73c6702d0/Editor.py | |
if event.GetOldSelection() != event.GetSelection(): self.editor.setupToolBar(viewIdx = event.GetSelection()) | viewIdx = event.GetSelection() if event.GetOldSelection() != viewIdx: self.editor.setupToolBar(viewIdx=viewIdx) view = self.getActiveView(viewIdx) if hasattr(view, 'OnPageActivated'): view.OnPageActivated(event) | def OnPageChange(self, event): if event.GetOldSelection() != event.GetSelection(): self.editor.setupToolBar(viewIdx = event.GetSelection()) event.Skip() | 7176bad8ff0a35af8625b72eec1b81f73c6702d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7176bad8ff0a35af8625b72eec1b81f73c6702d0/Editor.py |
def OnPageChange(self, event): if event.GetOldSelection() != event.GetSelection(): self.editor.setupToolBar(viewIdx = event.GetSelection()) event.Skip() | 7176bad8ff0a35af8625b72eec1b81f73c6702d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/7176bad8ff0a35af8625b72eec1b81f73c6702d0/Editor.py | ||
try: server.exit_debugger() except socket.error, err: pass server = None | def kill(self): server = self.server if server is not None: self.server = None try: server.exit_debugger() except socket.error, err: pass # server is already shut down server = None self.input_stream = None self.error_stream = None process = self.process self.process = None if process is not None: # process.Detach() if... | a8fa340c21b57500a6ef79b1f5a895eea36d0a30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a8fa340c21b57500a6ef79b1f5a895eea36d0a30/ChildProcessClient.py | |
t, v, tb = sys.exc_info() | t, v = sys.exc_info()[:2] | def OnDebuggerStart(self, evt): try: wx.wxBeginBusyCursor() try: if self.server is None: # Start the subprocess. process = wx.wxProcess(self.event_handler, self.win_id) process.Redirect() self.process = process wx.EVT_END_PROCESS(self.event_handler, self.win_id, self.OnProcessEnded) (self.server, self.input_stream, sel... | a8fa340c21b57500a6ef79b1f5a895eea36d0a30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a8fa340c21b57500a6ef79b1f5a895eea36d0a30/ChildProcessClient.py |
Utils.AddToolButtonBmpIS(self, self.toolBar, 'Images/Shared/Up.png', | Utils.AddToolButtonBmpIS(self, self.toolBar, 'Images/Shared/up.png', | def __init__(self, parent, collEditView, additAdders = (), lvStyle = wxLC_REPORT): self._init_ctrls(parent) | b39f9e3a86bdac69b5055f087539db4380b6012a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b39f9e3a86bdac69b5055f087539db4380b6012a/CollectionEdit.py |
Utils.AddToolButtonBmpIS(self, self.toolBar, 'Images/Shared/Down.png', | Utils.AddToolButtonBmpIS(self, self.toolBar, 'Images/Shared/down.png', | def __init__(self, parent, collEditView, additAdders = (), lvStyle = wxLC_REPORT): self._init_ctrls(parent) | b39f9e3a86bdac69b5055f087539db4380b6012a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b39f9e3a86bdac69b5055f087539db4380b6012a/CollectionEdit.py |
def OnLoginCVS(self, event): | def OnLoginCVS(self, event, cvsroot=''): | def OnLoginCVS(self, event): cvsDir = self.list.node.resourcepath | b94d80a8d6380c520f64a27f00e364c24e6099b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b94d80a8d6380c520f64a27f00e364c24e6099b8/CVSExplorer.py |
if os.environ.has_key('CVSROOT'): cvsroot = os.environ['CVSROOT'] else: cvsroot = '' cvsroot = self.cvsCmdPrompt(cvsroot, cvsDir, help = 'Change the CVSROOT if necessary:') dlg = wxTextEntryDialog(self.list, 'Enter cvs password for '+cvsroot, 'CVS login', '', style = wxOK | wxCANCEL | wxCENTRE | wxTE_PASSWORD) | if not cvsroot: if os.environ.has_key('CVSROOT'): cvsroot = os.environ['CVSROOT'] else: cvsroot = '' cvsroot = self.cvsCmdPrompt(cvsroot, cvsDir, help='Change the CVSROOT if necessary:') dlg = wxTextEntryDialog(self.list, 'Enter cvs password for '+cvsroot, 'CVS login', '', style=wxOK|wxCANCEL|wxCENTRE|wxTE_PASSWORD) | def OnLoginCVS(self, event): cvsDir = self.list.node.resourcepath | b94d80a8d6380c520f64a27f00e364c24e6099b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b94d80a8d6380c520f64a27f00e364c24e6099b8/CVSExplorer.py |
if Utils.startswith(timestamp, 'Result of merge+'): | if timestamp.startswith('Result of merge+'): | def open(self, editor): tree = editor.explorer.tree node = editor.explorer.list.getSelection() timestamp = node.timestamp tree.SelectItem(tree.GetItemParent(tree.GetSelection())) editor.explorer.list.selectItemNamed(self.name) if self.conflict: node = editor.explorer.list.getSelection() | b94d80a8d6380c520f64a27f00e364c24e6099b8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b94d80a8d6380c520f64a27f00e364c24e6099b8/CVSExplorer.py |
altDown = event.AltDown() | def OnKeyDown(self, event): #if Preferences.handleSpecialEuropeanKeys: # self.handleSpecialEuropeanKeys(event, Preferences.euroKeysCountry) | 819b5d970b4a9a604bebc6d5927c5a6b42025791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/819b5d970b4a9a604bebc6d5927c5a6b42025791/ShellEditor.py | |
if kk == 13 and not (event.ShiftDown() or event.HasModifiers()): | if kk == 13 and not (shiftDown or event.HasModifiers()): | def OnKeyDown(self, event): #if Preferences.handleSpecialEuropeanKeys: # self.handleSpecialEuropeanKeys(event, Preferences.euroKeysCountry) | 819b5d970b4a9a604bebc6d5927c5a6b42025791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/819b5d970b4a9a604bebc6d5927c5a6b42025791/ShellEditor.py |
if shiftDown and self.sc.has_key((wxACCEL_CTRL|wxACCEL_SHIFT, kk)): self.sc[(wxACCEL_CTRL|wxACCEL_SHIFT, kk)](self) elif self.sc.has_key((wxACCEL_CTRL, kk)): self.sc[(wxACCEL_CTRL, kk)](self) | if shiftDown and self.sc.has_key((wxACCEL_CTRL|wxACCEL_SHIFT, kk)): self.sc[(wxACCEL_CTRL|wxACCEL_SHIFT, kk)](self) return elif self.sc.has_key((wxACCEL_CTRL, kk)): self.sc[(wxACCEL_CTRL, kk)](self) return | def OnKeyDown(self, event): #if Preferences.handleSpecialEuropeanKeys: # self.handleSpecialEuropeanKeys(event, Preferences.euroKeysCountry) | 819b5d970b4a9a604bebc6d5927c5a6b42025791 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/819b5d970b4a9a604bebc6d5927c5a6b42025791/ShellEditor.py |
print 'Clip copy' | def OnCopyItems(self, event): print 'Clip copy' if self.list.node: nodes = self.getNodesForSelection(self.list.getMultiSelection()) self.list.node.clipCopy(nodes) | 82438a0491e48a78bdcfac31c0cb91b284a26da5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/82438a0491e48a78bdcfac31c0cb91b284a26da5/ExplorerNodes.py | |
print 'Opening item', node | def OnOpenItems(self, event): if self.list.node: nodes = self.getNodesForSelection(self.list.getMultiSelection()) for node in nodes: if not node.isFolderish(): print 'Opening item', node node.open(self.editor) | 82438a0491e48a78bdcfac31c0cb91b284a26da5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/82438a0491e48a78bdcfac31c0cb91b284a26da5/ExplorerNodes.py | |
args[paramKey] = PaletteMapping.evalCtrl(params[paramKey], evalDct) | try: args[paramKey] = PaletteMapping.evalCtrl(params[paramKey], evalDct) except AttributeError: args[paramKey] = PaletteMapping.evalCtrl(params[paramKey], {'self': self.controllerView.objectNamespace}) | def setupArgs(self, ctrlName, params, dontEval, evalDct): """ Create a dictionary of parameters for the constructor of the control from a dictionary of string/source parameters. Catches design time parameter overrides. """ | 6d7c849c8752e6d33d45c38c3692734782e26796 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6d7c849c8752e6d33d45c38c3692734782e26796/InspectableViews.py |
wxID_BREAKENABLED, wxID_BREAKREFRESH] = map(lambda x: NewId(), range(6)) | wxID_BREAKENABLED, wxID_BREAKREFRESH, wxID_BREAKIGNORE] = Utils.wxNewIds(7) | def OnGotoSource(self, event): if self.selection != -1: entry = self.stack[self.selection] lineno = entry['lineno'] modname = entry['modname'] filename = entry['client_filename'] if not filename: return | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
self.menu.Append(wxID_BREAKEDIT, 'Edit') | self.menu.Append(wxID_BREAKIGNORE, 'Edit ignore count') self.menu.Append(wxID_BREAKEDIT, 'Edit condition') | def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.I... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
EVT_MENU(self, wxID_BREAKEDIT, self.OnEdit) | EVT_MENU(self, wxID_BREAKIGNORE, self.OnEditIgnore) EVT_MENU(self, wxID_BREAKEDIT, self.OnEditCondition) | def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.I... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
if not bp['enabled']: imgIdx = 2 | if not bp['enabled']: imgIdx = 2 | def refreshList(self): self.rightsel = -1 self.DeleteAllItems() bps = bplist.getBreakpointList() # Sort by filename and lineno. bps.sort(lambda a, b: cmp((a['filename'], a['lineno']), (b['filename'], b['lineno']))) self.bps = bps for p in range(len(bps)): bp = bps[p] imgIdx = 0 if not bp['enabled']: imgIdx = 2 elif bp[... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
if bp['enabled']: self.SetStringItem(p, 3, '*') | def refreshList(self): self.rightsel = -1 self.DeleteAllItems() bps = bplist.getBreakpointList() # Sort by filename and lineno. bps.sort(lambda a, b: cmp((a['filename'], a['lineno']), (b['filename'], b['lineno']))) self.bps = bps for p in range(len(bps)): bp = bps[p] imgIdx = 0 if not bp['enabled']: imgIdx = 2 elif bp[... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | |
self.SetStringItem(p, 4, bp['cond'] or '') | self.SetStringItem(p, 4, cond) | def refreshList(self): self.rightsel = -1 self.DeleteAllItems() bps = bplist.getBreakpointList() # Sort by filename and lineno. bps.sort(lambda a, b: cmp((a['filename'], a['lineno']), (b['filename'], b['lineno']))) self.bps = bps for p in range(len(bps)): bp = bps[p] imgIdx = 0 if not bp['enabled']: imgIdx = 2 elif bp[... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
editor.openOrGotoModule(filename) sourceView = editor.getActiveModulePage().model.views['Source'] | model, ctrlr = editor.openOrGotoModule(filename) sourceView = model.views['Source'] | def gotoSourceForItem(self, sel): bp = self.bps[sel] filename = bp['filename'] if not filename: return editor = self.debugger.editor editor.SetFocus() editor.openOrGotoModule(filename) sourceView = editor.getActiveModulePage().model.views['Source'] sourceView.focus() #sourceView.SetFocus() #sourceView.selectLine(bp['li... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
def OnEdit(self, event): pass | def gotoSourceForItem(self, sel): bp = self.bps[sel] filename = bp['filename'] if not filename: return editor = self.debugger.editor editor.SetFocus() editor.openOrGotoModule(filename) sourceView = editor.getActiveModulePage().model.views['Source'] sourceView.focus() #sourceView.SetFocus() #sourceView.selectLine(bp['li... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | |
'enableBreakpoints', (filename, lineno, enabled)) | 'enableBreakpoints', (server_fn, lineno, enabled)) | def OnToggleEnabled(self, event): sel = self.rightsel if sel != -1: bp = self.bps[sel] filename = bp['filename'] lineno = bp['lineno'] enabled = bp['enabled'] = not bp['enabled'] bplist.enableBreakpoints(filename, lineno, enabled) self.debugger.invokeInDebugger( 'enableBreakpoints', (filename, lineno, enabled)) self.re... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
def compareColors(c1, c2): return (c1.Red() == c2.Red() and c1.Green() == c2.Green() and c1.Blue() == c2.Blue()) | def simplifyPathList(data, SequenceTypes=(type(()), type([])), ExcludeTypes=(type(None),) ): # Takes a possibly nested structure and turns it into a flat tuple. if type(data) in SequenceTypes: newdata = [] for d in data: nd = simplifyPathList(d) if nd: newdata.extend(nd) return newdata elif type(data) in ExcludeTypes: ... | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | |
self.splitter = wxSplitterWindow(self, -1, style=wxSP_NOBORDER | wxSP_3DSASH | wxSP_FULLSASH) | self.splitter = wxSplitterWindow(self, -1, style=wxSP_NOBORDER | wxSP_3DSASH | wxSP_FULLSASH) use_images = (1 or wxPlatform == '__WXMSW__') if use_images: (stackImgIdx, breaksImgIdx, watchesImgIdx, localsImgIdx, globalsImgIdx) = range(5) else: stackImgIdx=breaksImgIdx=watchesImgIdx=localsImgIdx=globalsImgIdx=-1 | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
use_images = (1 or wxPlatform == '__WXMSW__') | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py | |
if use_images: self.nbTop.AddPage(self.stackView, 'Stack', imageId = 0) else: self.nbTop.AddPage(self.stackView, 'Stack') | self.nbTop.AddPage(self.stackView, 'Stack', imageId=stackImgIdx) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
if use_images: self.nbTop.AddPage(self.breakpts, 'Breakpoints', imageId = 1) else: self.nbTop.AddPage(self.breakpts, 'Breakpoints') | self.nbTop.AddPage(self.breakpts, 'Breakpoints', imageId=breaksImgIdx) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 5670e50e1632ce1c246206653a7700bc0df89b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5670e50e1632ce1c246206653a7700bc0df89b49/Debugger.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.