rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
return simpleAppFrameRunSrc
return sourceconst.simpleAppFrameRunSrc
def getSimpleRunnerSrc(self): """ Return template of source code that will run this module type as a stand-alone file """ return simpleAppFrameRunSrc
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
return simpleAppDialogRunSrc
return sourceconst.simpleAppDialogRunSrc
def getSimpleRunnerSrc(self): return simpleAppDialogRunSrc
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
return simpleAppPopupRunSrc
return sourceconst.simpleAppPopupRunSrc
def getSimpleRunnerSrc(self): return simpleAppPopupRunSrc
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
return simpleAppPopupRunSrc
return sourceconst.simpleAppPopupRunSrc
def getSimpleRunnerSrc(self): return simpleAppPopupRunSrc
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
self.data = (defEnvPython + defSig + defImport + defApp) \ %(self.modelIdentifier, boaClass, mainModule, mainModule, mainModule, mainModule)
self.data = (sourceconst.defEnvPython + sourceconst.defSig + \ sourceconst.defImport + sourceconst.defApp)%( self.modelIdentifier, sourceconst.boaClass, mainModule, mainModule, mainModule, mainModule)
def new(self, mainModule): self.data = (defEnvPython + defSig + defImport + defApp) \ %(self.modelIdentifier, boaClass, mainModule, mainModule, mainModule, mainModule) self.saved = false self.modified = true self.update() self.notify()
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
def new(self, mainModule): self.data = (defEnvPython + defSig + defImport + defApp) \ %(self.modelIdentifier, boaClass, mainModule, mainModule, mainModule, mainModule) self.saved = false self.modified = true self.update() self.notify()
2e9d3fcbdee9554725586a2bb9d0c08869148a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2e9d3fcbdee9554725586a2bb9d0c08869148a5c/wxPythonEditorModels.py
cnt = 0
def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: try: sidx = string.index(param, '=') except ValueError: result[`cnt`] = string.strip(param[sidx+1:]) else: result[string.strip(param[:sidx])] = string.strip(param[sidx+1:]) cnt = cnt + 1 return result
6eb029397632b8d41c11a092feecd7f4c782a432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6eb029397632b8d41c11a092feecd7f4c782a432/methodparse.py
result[`cnt`] = string.strip(param[sidx+1:])
pass
def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: try: sidx = string.index(param, '=') except ValueError: result[`cnt`] = string.strip(param[sidx+1:]) else: result[string.strip(param[:sidx])] = string.strip(param[sidx+1:]) cnt = cnt + 1 return result
6eb029397632b8d41c11a092feecd7f4c782a432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6eb029397632b8d41c11a092feecd7f4c782a432/methodparse.py
cnt = cnt + 1
def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: try: sidx = string.index(param, '=') except ValueError: result[`cnt`] = string.strip(param[sidx+1:]) else: result[string.strip(param[:sidx])] = string.strip(param[sidx+1:]) cnt = cnt + 1 return result
6eb029397632b8d41c11a092feecd7f4c782a432 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6eb029397632b8d41c11a092feecd7f4c782a432/methodparse.py
client = ChildProcessClient(self)
client = ChildProcessClient(self, '--zope')
def setDebugClient(self, client=None): if client is None: from ChildProcessClient import ChildProcessClient client = ChildProcessClient(self) self.debug_client = client
c2a215ce8eef7c10e8c85ab68f2f27683ad0efcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c2a215ce8eef7c10e8c85ab68f2f27683ad0efcd/Debugger.py
frame['client_filename'] = \ self.serverFNToClientFN(frame['filename'])
frame['client_filename'] = ( self.serverFNToClientFN(frame['filename']))
def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data)
c2a215ce8eef7c10e8c85ab68f2f27683ad0efcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c2a215ce8eef7c10e8c85ab68f2f27683ad0efcd/Debugger.py
self.prodsDir = path.join(zopeDir, 'lib','python','Products')
self.prodsDir = os.path.join(zopeDir, 'lib','python','Products')
def __init__(self, zopeDir): self.zopeDir = zopeDir if self.zopeDir: self.prodsDir = path.join(zopeDir, 'lib','python','Products') else: self.prodsDir = ''
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
mods = self._addPyMods(path.join(self.zopeDir, 'Extensions'))
mods = self._addPyMods(os.path.join(self.zopeDir, 'Extensions'))
def getModules(self): mods = self._addPyMods(path.join(self.zopeDir, 'Extensions'))
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
if path.exists(path.join(self.prodsDir, p)) and \ path.exists(path.join(self.prodsDir, p, 'Extensions')): mods.extend(self._addPyMods(path.join(self.prodsDir, p,
if os.path.exists(os.path.join(self.prodsDir, p)) and \ os.path.exists(os.path.join(self.prodsDir, p, 'Extensions')): mods.extend(self._addPyMods(os.path.join(self.prodsDir, p,
def getModules(self): mods = self._addPyMods(path.join(self.zopeDir, 'Extensions'))
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
mods.append(prod +(prod and '.')+path.splitext(file)[0])
mods.append(prod +(prod and '.')+os.path.splitext(file)[0])
def _addPyMods(self, pypath, prod=''): from Explorers import Explorer Explorer.listdirEx(pypath, '.zexp') mods = [] fls = Explorer.listdirEx(pypath, '.py') for file in fls: mods.append(prod +(prod and '.')+path.splitext(file)[0]) return mods
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
modLst = string.split(module, '.')
modLst = module.split('.')
def getExtPath(self, module): modLst = string.split(module, '.') if len(modLst) == 1: modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py') else: modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py')
modpath = os.path.join(self.zopeDir, 'Extensions', modLst[0] + '.py')
def getExtPath(self, module): modLst = string.split(module, '.') if len(modLst) == 1: modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py') else: modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
modpath = os.path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return modpath.replace('<LocalFS::directory>', '<LocalFS::file>')
def getExtPath(self, module): modLst = string.split(module, '.') if len(modLst) == 1: modpath = path.join(self.zopeDir, 'Extensions', modLst[0] + '.py') else: modpath = path.join(self.prodsDir, modLst[0], 'Extensions', modLst[1]+'.py') return string.replace(modpath, '<LocalFS::directory>', '<LocalFS::file>')
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
sep = string.count(src, '\r\n') < string.count(src, '\n') and '\n' or '\r\n' srclines = string.split(src, sep)
sep = src.count('\r\n') < src.count('\n') and '\n' or '\r\n' srclines = src.split(sep)
def getFunctions(self, module): from Explorers import Explorer extPath = self.getExtPath(module)
98cda4c49b17d3296fc5632de5467f70704f3dd5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/98cda4c49b17d3296fc5632de5467f70704f3dd5/ExtMethDlg.py
sidx = string.find(param, '=')
sidx = string.index(param, '=')
def extractKVParams(self, paramsStr): params = safesplitfields(paramsStr, ',') result = {} cnt = 0 for param in params: try: sidx = string.find(param, '=') except ValueError: result[`cnt`] = string.strip(param[sidx+1:]) else: result[string.strip(param[:sidx])] = string.strip(param[sidx+1:]) cnt = cnt + 1 return result
dd752f0cb4ed03de10682e2f6d3fa3b7212204eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dd752f0cb4ed03de10682e2f6d3fa3b7212204eb/methodparse.py
py_compile.compile(self.filename)
import py_compile py_compile.compile(filename)
def run(self, filename): py_compile.compile(self.filename)
75d76d5d0ca26c76079dd1fa735073128915b5ea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/75d76d5d0ca26c76079dd1fa735073128915b5ea/ModRunner.py
filesegs, cvssegs = string.split(filets), string.split(timestamp)
if conflict and len(ismerge) ==1: filesegs, cvssegs = 1, 0
def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) filesegs, cvssegs = string.split(filets), string.split(timestamp) # convert day to int to avoid zero padded differences filesegs[2], cvssegs[2] = in...
51465a7a04c596b02899565e3cacf4caff63217e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/51465a7a04c596b02899565e3cacf4caff63217e/CVSExplorer.py
filesegs[2], cvssegs[2] = int(filesegs[2]), int(cvssegs[2])
else: if conflict: filesegs, cvssegs = string.split(filets), string.split(ismerge[1]) else: filesegs, cvssegs = string.split(filets), string.split(timestamp) filesegs[2], cvssegs[2] = int(filesegs[2]), int(cvssegs[2])
def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) filesegs, cvssegs = string.split(filets), string.split(timestamp) # convert day to int to avoid zero padded differences filesegs[2], cvssegs[2] = in...
51465a7a04c596b02899565e3cacf4caff63217e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/51465a7a04c596b02899565e3cacf4caff63217e/CVSExplorer.py
string.split(timestamp, '+')[0] == 'Result of merge')
conflict)
def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) filesegs, cvssegs = string.split(filets), string.split(timestamp) # convert day to int to avoid zero padded differences filesegs[2], cvssegs[2] = in...
51465a7a04c596b02899565e3cacf4caff63217e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/51465a7a04c596b02899565e3cacf4caff63217e/CVSExplorer.py
%(os.environ.get('CVSROOT', '(not defined)'), os.environ.get('CVS_RSH', '(not defined)'), inDir, help),
%(cvsroot, os.environ.get('CVS_RSH', '(not defined)'), inDir, help),
def cvsCmdPrompt(self, wholeCommand, inDir, help = ''): dlg = wxTextEntryDialog(self.list, 'CVSROOT: %s\nCVS_RSH: %s\n(in dir %s)\n\n%s'\ %(os.environ.get('CVSROOT', '(not defined)'), os.environ.get('CVS_RSH', '(not defined)'), inDir, help), 'CVS command line', wholeCommand) if wxPlatform == '__WXMSW__': te = Utils.get...
51465a7a04c596b02899565e3cacf4caff63217e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/51465a7a04c596b02899565e3cacf4caff63217e/CVSExplorer.py
err = ErrorStack.crashError(os.path.splitext(self.filename)[0]+'.trace')
err = ErrorStack.crashError(os.path.splitext(self.assertLocalFile())[0]+'.trace')
def crashLog(self): err = ErrorStack.crashError(os.path.splitext(self.filename)[0]+'.trace') if err: frm = self.editor.erroutFrm if frm: frm.updateCtrls(err) frm.display(err) return frm else: wx.wxLogError('Trace file not found. Run with command line param -T') return None
295de14422589e85de09db9b3e81c89252ef275c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/295de14422589e85de09db9b3e81c89252ef275c/EditorModels.py
if selItems[0] < 1: return
if not selItems or selItems[0] < 1: return
def OnBbUpFirstButton(self, event): selItems = self.lbObjects.GetSelections() if selItems[0] < 1: return for item in selItems: self.moveObject(item, item - selItems[0])
4abc71c7943938785082c0e6f42ce2efdc234cc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4abc71c7943938785082c0e6f42ce2efdc234cc7/CreationOrdDlg.py
if selItems[0] < 1: return
if not selItems or selItems[0] < 1: return
def OnBbupButton(self, event): selItems = self.lbObjects.GetSelections() if selItems[0] < 1: return for item in selItems: self.moveObject(item, item - 1)
4abc71c7943938785082c0e6f42ce2efdc234cc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4abc71c7943938785082c0e6f42ce2efdc234cc7/CreationOrdDlg.py
if selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return
if not selItems or selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return
def OnBbdownButton(self, event): selItems = self.lbObjects.GetSelections() cnt = len(selItems) if selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return for i in range( cnt ): item = selItems[cnt - i - 1] self.moveObject(item, item + 1)
4abc71c7943938785082c0e6f42ce2efdc234cc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4abc71c7943938785082c0e6f42ce2efdc234cc7/CreationOrdDlg.py
if selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return
if not selItems or selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return
def OnBbDownLastButton(self, event): selItems = self.lbObjects.GetSelections() cnt = len(selItems) if selItems[cnt-1] > ( len(self.ctrlNames) - 2 ): return shift = len(self.ctrlNames) - 1 - selItems[cnt - 1] for i in range( cnt ): item = selItems[cnt - i - 1] self.moveObject(item, item + shift)
4abc71c7943938785082c0e6f42ce2efdc234cc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4abc71c7943938785082c0e6f42ce2efdc234cc7/CreationOrdDlg.py
props = CollectionDTC.properties(self)
props = CollectionIddDTC.properties(self)
def properties(self): props = CollectionDTC.properties(self) props.update({'Label': ('IndexRoute', wxMenu.GetLabel, wxMenu.SetLabel)}) return props
95f9b8316051c1313fdfe4125c7f0093852467b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/95f9b8316051c1313fdfe4125c7f0093852467b9/UtilCompanions.py
props = CollectionDTC.properties(self)
props = UtilityDTC.properties(self)
def properties(self): props = CollectionDTC.properties(self) props.update({'Menus': ('NoneRoute', None, None)}) return props
95f9b8316051c1313fdfe4125c7f0093852467b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/95f9b8316051c1313fdfe4125c7f0093852467b9/UtilCompanions.py
def events(self): return ['MenuEvent']
def designTimeDefaults(self, vals): dtd = {} for param in vals.keys(): if param == 'menu': name = vals[param] if name[:4] == 'self': dtd[param] = self.designer.objects[name[5:]][1] elif name == 'wxMenu()': dtd[param] = wxMenu() else: raise 'Invalid menu reference' else: try: dtd[param] = eval(vals[param]) except Except...
95f9b8316051c1313fdfe4125c7f0093852467b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/95f9b8316051c1313fdfe4125c7f0093852467b9/UtilCompanions.py
'Cut (not implemented)', self.OnCut)
'Cut selection', self.OnCut)
def __init__(self, parent): self._init_ctrls(parent)
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
'Copy (not implemented)', self.OnCopy)
'Copy selection', self.OnCopy)
def __init__(self, parent): self._init_ctrls(parent)
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
'Paste (not implemented)', self.OnPaste)
'Paste selection', self.OnPaste) AddToolButtonBmpIS(self, self.toolBar, 'Images/Editor/Refresh.bmp', 'Recreate selection', self.OnRecreateSelection)
def __init__(self, parent): self._init_ctrls(parent)
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp.designer: sb = self.selCmp.designer.model.editor.statusBar.progress
if self.selDesgn: sb = self.selDesgn.model.editor.statusBar.progress
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
comp.persistProp(comp.name, 'SetPosition', comp.control.GetPosition())
print 'directPositionUpdate', comp.name comp.persistProp('Position', 'SetPosition', `comp.control.GetPosition()`)
def directPositionUpdate(self, comp): comp.persistProp(comp.name, 'SetPosition', comp.control.GetPosition())
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
comp.persistProp(comp.name, 'SetSize', comp.control.GetSize())
comp.persistProp('Size', 'SetSize', `comp.control.GetSize()`)
def directSizeUpdate(self, comp): comp.persistProp(comp.name, 'SetSize', comp.control.GetSize())
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp and self.selCmp.designer: self.selCmp.designer.deleteCtrl(self.selCmp.name)
if self.selDesgn: self.selDesgn.OnControlDelete(event)
def OnDelete(self, event): if self.selCmp and self.selCmp.designer: self.selCmp.designer.deleteCtrl(self.selCmp.name)
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp and self.selCmp.designer: self.selCmp.designer.selectParent(self.selObj)
if self.selDesgn: self.selDesgn.OnSelectParent(event)
def OnUp(self, event): if self.selCmp and self.selCmp.designer: self.selCmp.designer.selectParent(self.selObj)
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
pass
if self.selDesgn: self.selDesgn.OnCutSelected(event)
def OnCut(self, event): pass
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
pass
if self.selDesgn: self.selDesgn.OnCopySelected(event)
def OnCopy(self, event): pass
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
pass
if self.selDesgn: self.selDesgn.OnPasteSelected(event) def OnRecreateSelection(self, event): if self.selDesgn: self.selDesgn.OnRecreateSelected(event)
def OnPaste(self, event): pass
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = true self.selCmp.designer.Close()
if self.selDesgn: self.selDesgn.saveOnClose = true self.selDesgn.Close()
def OnPost(self, event): if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = true self.selCmp.designer.Close()
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = false self.selCmp.designer.Close()
if self.selDesgn: self.selDesgn.saveOnClose = false self.selDesgn.Close()
def OnCancel(self, event): if self.selCmp and self.selCmp.designer: self.selCmp.designer.saveOnClose = false self.selCmp.designer.Close()
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
if self.selCmp and self.selCmp.designer:
if self.selDesgn:
def OnHelp(self, event): if self.selCmp and self.selCmp.designer: url = self.pages.extendHelpUrl(self.selectedCtrlHelpFile()) Help.showHelp(self, Help.wxWinHelpFrame, url) else: Help.showHelp(self, Help.BoaHelpFrame, 'Inspector.html')
2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2b9c9a7f639bf2f46c9322e4d29e991a0cf665a6/Inspector.py
"""Class to represent a Python class."""
""" Class to represent a Python class. """
def renumber(self, from_line, increment): if self.lineno > from_line: self.lineno = self.lineno + increment
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
if to_bottom:
if to_bottom or not a_class.method_order:
def addMethod(self, class_name, method_name, method_params, method_body, to_bottom = 1): new_length = len(method_body) + 2 if not method_body: return a_class = self.classes[class_name]
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
ins_point = a_class.block.start
ins_point = a_class.methods[a_class.method_order[0]].start-1
def addMethod(self, class_name, method_name, method_params, method_body, to_bottom = 1): new_length = len(method_body) + 2 if not method_body: return a_class = self.classes[class_name]
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
a_class.add_method(method_name, method_params, ins_point, ins_point + \
self.renumber(new_length, ins_point) a_class.add_method(method_name, method_params, ins_point+1, ins_point + \
def addMethod(self, class_name, method_name, method_params, method_body, to_bottom = 1): new_length = len(method_body) + 2 if not method_body: return a_class = self.classes[class_name]
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
self.renumber(new_length, ins_point)
pre_blank + [' def %s(%s):' % (method_name, method_params)] + \
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
if len(self.class_order):
if self.class_order:
def getModuleDoc(self): """ Return doc string for module. Scan the area from the start of the file up to the first occurence of a doc string containing structure like func or class """ if len(self.class_order): classStart = self.classes[self.class_order[0]].block.start -1 else: classStart = len(self.source)
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
if len(self.function_order):
if self.function_order:
def getModuleDoc(self): """ Return doc string for module. Scan the area from the start of the file up to the first occurence of a doc string containing structure like func or class """ if len(self.class_order): classStart = self.classes[self.class_order[0]].block.start -1 else: classStart = len(self.source)
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
for i in modTop: if not string.strip(i):
for line in lines: if not string.strip(line):
def getModuleDoc(self): """ Return doc string for module. Scan the area from the start of the file up to the first occurence of a doc string containing structure like func or class """ if len(self.class_order): classStart = self.classes[self.class_order[0]].block.start -1 else: classStart = len(self.source)
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
l.append(i) return self.searchDoc(string.join(l))
l.append(line) return l
def getModuleDoc(self): """ Return doc string for module. Scan the area from the start of the file up to the first occurence of a doc string containing structure like func or class """ if len(self.class_order): classStart = self.classes[self.class_order[0]].block.start -1 else: classStart = len(self.source)
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
cb = string.join(self.source[cls.block.start: min(methStart, cls.block.end)]) return self.searchDoc(cb)
classDoc = self.source[cls.block.start: min(methStart, cls.block.end)] return self.searchDoc(string.join(self.formatDocStr(classDoc)))
def getClassDoc(self, class_name): #delete all method bodies # XXX broken, returns first doc str in class
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
cb = string.join(self.extractMethodBody(class_name, meth_name)) return self.searchDoc(cb)
methDoc = self.extractMethodBody(class_name, meth_name) return self.searchDoc(string.join(self.formatDocStr(methDoc))) def getFunctionDoc(self, function_name): funcDoc = self.extractFunctionBody(function_name) return self.searchDoc(string.join(self.formatDocStr(funcDoc)))
def getClassMethDoc(self, class_name, meth_name): """ Extract the doc string for a method """ cb = string.join(self.extractMethodBody(class_name, meth_name)) return self.searchDoc(cb)
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
ins_point = self.source
ins_point = len(self.source)
def addFunction(self, func_name, func_params, func_body):
ceb3793e76b7988fc9f84a2456730c54cbd81462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ceb3793e76b7988fc9f84a2456730c54cbd81462/moduleparse.py
if type(prnt) == type(self):
if isinstance(prnt, moduleparse.Class):
def getAttribs(self, cls, methsOnly=false): loopCls = cls lst = [] while loopCls: lst.extend(loopCls.methods.keys()) if not methsOnly: lst.extend(loopCls.attributes.keys())
9859fa8da29db8c5483006144fa8697df3e4467d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9859fa8da29db8c5483006144fa8697df3e4467d/PySourceView.py
installedTransports = ['Explorers.PrefsExplorer'] + \
installTransports = ['Explorers.PrefsExplorer'] + \
def importExplorers(self, conf): """ Import names defined in the config files to register them """ installedTransports = ['Explorers.PrefsExplorer'] + \ eval(conf.get('explorer', 'installedtransports'))
b009f11e2acca2c3e961d9928159a9fd8856a41c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b009f11e2acca2c3e961d9928159a9fd8856a41c/Explorer.py
for moduleName in installedTransports: try: __import__(moduleName, globals()) except ImportError, error: wxLogWarning('%s not installed: %s' %(moduleName, str(error))) warned = true else: ExplorerNodes.installedModules.append(moduleName)
for moduleName in installTransports: warned = importTransport(moduleName)
def importExplorers(self, conf): """ Import names defined in the config files to register them """ installedTransports = ['Explorers.PrefsExplorer'] + \ eval(conf.get('explorer', 'installedtransports'))
b009f11e2acca2c3e961d9928159a9fd8856a41c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b009f11e2acca2c3e961d9928159a9fd8856a41c/Explorer.py
'is not rectifiable,\nconsider removing the transport from the ' '"installedtransports" list in the Explorer config. Click "Details"')
'is not rectifiable,\nconsider removing the transport under ' 'Preferences->Plug-ins->Transports. Click "Details"')
def importExplorers(self, conf): """ Import names defined in the config files to register them """ installedTransports = ['Explorers.PrefsExplorer'] + \ eval(conf.get('explorer', 'installedtransports'))
b009f11e2acca2c3e961d9928159a9fd8856a41c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b009f11e2acca2c3e961d9928159a9fd8856a41c/Explorer.py
renameNode = self.list.getSelection() assert renameNode, 'No selection after rename' self.editor.explorerRenameNotify(oldURI, renameNode)
renamedNode = self.list.getSelection() if renamedNode: self.editor.explorerRenameNotify(oldURI, renamedNode)
def OnEndLabelEdit(self, event): newText = event.GetText() renameNode = self.list.getSelection() assert renameNode, 'There must be a selection to rename' oldURI = renameNode.getURI() if newText != self.oldLabelVal: event.Skip() self.list.node.renameItem(self.oldLabelVal, newText) self.list.refreshCurrent() self.list.se...
b009f11e2acca2c3e961d9928159a9fd8856a41c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b009f11e2acca2c3e961d9928159a9fd8856a41c/Explorer.py
new_port = 9100
new_port = 20202
def spawnChild(monitor, process, args=''): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = string.join...
08b6bbc2b2d180c43f77b8158e7ba4348799bbf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/08b6bbc2b2d180c43f77b8158e7ba4348799bbf4/ChildProcessClient.py
os.system("tcpwatch -L %d:%d" % (int(port1), int(port2)))
os.system("tcpwatch -L %d:127.0.0.1:%d" % ( int(port1), int(port2)))
def run_tcpwatch(port1, port2): os.system("tcpwatch -L %d:%d" % (int(port1), int(port2)))
08b6bbc2b2d180c43f77b8158e7ba4348799bbf4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/08b6bbc2b2d180c43f77b8158e7ba4348799bbf4/ChildProcessClient.py
methodparse.decorateParseItems(objCol.eventsByName[name], name, self.model.main)
if objCol.eventsByName.has_key(name): methodparse.decorateParseItems(objCol.eventsByName[name], name, self.model.main)
elif line[:5] == '\tdef ': meth = line[5:string.find(line, '(', 6)] currMeth = [meth] methList.append(currMeth)
618c7a1f8eed39ef237c2a0f1d9c49ac543e63fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/618c7a1f8eed39ef237c2a0f1d9c49ac543e63fa/InspectableViews.py
def dontPersistProps(self): return ContainerDTC.dontPersistProps(self)
def dontPersistProps(self): # skip the code that removes ClientSize from the 'remove' list return ContainerDTC.dontPersistProps(self)
2caf1450fc79c167b657e77eb4261322c707f9cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2caf1450fc79c167b657e77eb4261322c707f9cd/FrameCompanions.py
print event.GetString()
def OnfgColCombobox(self, event): print event.GetString() try: self.editColTCProp(self.fgColCb, self.fgColBtn, 'fore', event.GetString()) except AssertionError: wxLogError('Not a valid colour value')
fa175d91a3db123d920fde05bd1ee87a2ce9616f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/fa175d91a3db123d920fde05bd1ee87a2ce9616f/STCStyleEditor.py
print 'asdf'
def OnDblClick(evt, stc=stc): dlg = STCStyleEditDlg(None, 'Python', 'python', config, (stc,)) try: dlg.ShowModal() finally: dlg.Destroy()
fa175d91a3db123d920fde05bd1ee87a2ce9616f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/fa175d91a3db123d920fde05bd1ee87a2ce9616f/STCStyleEditor.py
del self.images
self.images = None
def destroy(self): del self.images
c55c2d77766b77e12223306ddefe9d8db976bd1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c55c2d77766b77e12223306ddefe9d8db976bd1b/EditorUtils.py
self.findTxt = wxComboBox(choices = [], id = wxID_FINDREPLACEDLGFINDTXT, name = 'findTxt', parent = self, pos = wxPoint(88, 4), size = wxSize(268, 21), style = wxTE_PROCESS_ENTER, value = '') self.replaceTxt = wxComboBox(choices = [], id = wxID_FINDREPLACEDLGREPLACETXT, name = 'replaceTxt', parent = self, pos = wxPoin...
self.findTxt = wxComboBox(choices = [], id = wxID_FINDREPLACEDLGFINDTXT, name = 'findTxt', parent = self, pos = wxPoint(88, 4), size = wxSize(268, 21), style = 0, value = '') self.replaceTxt = wxComboBox(choices = [], id = wxID_FINDREPLACEDLGREPLACETXT, name = 'replaceTxt', parent = self, pos = wxPoint(88, 28), size =...
def _init_ctrls(self, prnt): wxDialog.__init__(self, id = wxID_FINDREPLACEDLG, name = 'FindReplaceDlg', parent = prnt, pos = wxPoint(394, 361), size = wxSize(372, 234), style = wxDEFAULT_DIALOG_STYLE, title = 'Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 207))
c23448bdbc4144c98c44c089b0c482d84c165890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c23448bdbc4144c98c44c089b0c482d84c165890/FindReplaceDlg.py
from PythonEditorModels import ModuleModel
from Models.PythonEditorModels import ModuleModel
def addNewView(self, name, View): return createFramedView(name, View, self.model, self.parent, (400, 200))[1]
c23448bdbc4144c98c44c089b0c482d84c165890 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c23448bdbc4144c98c44c089b0c482d84c165890/FindReplaceDlg.py
os.environ['PYTHONPATH'] = os.pathsep.join(sys.path) cmd = '%s "%s" %s' % (sys.executable, script_fn, args)
pyIntpPath = Preferences.getPythonInterpreterPath() if pyIntpPath == sys.executable: os.environ['PYTHONPATH'] = os.pathsep.join(sys.path) else: os.environ['PYTHONPATH'] = Preferences.pyPath cmd = '%s "%s" %s' % (pyIntpPath, script_fn, args)
def spawnChild(monitor, process, args=''): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = os.pathsep....
c84ecd785771d4fce7d026f3da1d50b056b28ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c84ecd785771d4fce7d026f3da1d50b056b28ea8/ChildProcessClient.py
raise __builtins__[exctype.strip()], (excvalue.strip()+errfile)
try: Error, val = __builtins__[exctype.strip()], (excvalue.strip()+errfile) except KeyError: Error, val = UnknownError, (exctype.strip()+':'+excvalue.strip()+errfile) raise Error, val
def spawnChild(monitor, process, args=''): """Returns an xmlrpclib.Server, a connection to an xml-rpc server, and the input and error streams. """ # Start ChildProcessServerStart.py in a new process. script_fn = os.path.join(os.path.dirname(__file__), 'ChildProcessServerStart.py') os.environ['PYTHONPATH'] = os.pathsep....
c84ecd785771d4fce7d026f3da1d50b056b28ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c84ecd785771d4fce7d026f3da1d50b056b28ea8/ChildProcessClient.py
t, v = sys.exc_info()[:2]
t, v, tb = sys.exc_info()
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...
c84ecd785771d4fce7d026f3da1d50b056b28ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c84ecd785771d4fce7d026f3da1d50b056b28ea8/ChildProcessClient.py
return [' %s = []'%self.__class__.sourceObjName, '']
return ['%s%s = []'%(sourceconst.bodyIndent, self.__class__.sourceObjName), '']
def initialiser(self): return [' %s = []'%self.__class__.sourceObjName, '']
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
return ['', ' return %s' %self.__class__.sourceObjName]
return ['', '%sreturn %s' %(sourceconst.bodyIndent, self.__class__.sourceObjName)]
def finaliser(self): return ['', ' return %s' %self.__class__.sourceObjName]
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
def generateWindowId(self, idx): return
def generateWindowId(self, idx): return
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
## def __init__(self, name, designer, parentCompanion, ctrl):
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
def generateWindowId(self, idx): return
def defaultAction(self): # select sub menu obj in data view pass
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
def SetName(self, oldName, newName): CollectionDTC.SetName(self, oldName, newName)
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
return [' %s = wxLayoutConstraints()'%self.__class__.sourceObjName, '']
return ['%s%s = wxLayoutConstraints()'%(sourceconst.bodyIndent, self.__class__.sourceObjName), '']
def initialiser(self): return [' %s = wxLayoutConstraints()'%self.__class__.sourceObjName, '']
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
return ['', ' return %s' %self.__class__.sourceObjName]
return ['', '%sreturn %s' %(sourceconst.bodyIndent, self.__class__.sourceObjName)]
def finaliser(self): return ['', ' return %s' %self.__class__.sourceObjName]
ae935457d703b7d8decbfabe25577e57bf45cf77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ae935457d703b7d8decbfabe25577e57bf45cf77/UtilCompanions.py
except Exception, message: print 'invalid config entry for', self.resourcepath[cat_option], message self.entries = copy.copy(self.defaultstruct)
except: message = sys.exc_info()[1] print 'invalid config entry for', \ self.resourcepath[cat_option], message self.entries = copy.copy(self.defaultStruct)
def refresh(self): try: self.entries = eval(self.config.get(self.resourcepath[cat_section], self.resourcepath[cat_option])) except Exception, message: print 'invalid config entry for', self.resourcepath[cat_option], message self.entries = copy.copy(self.defaultstruct)
42bd9a2d279867e044715efaf5e8f7dccebf4b27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/42bd9a2d279867e044715efaf5e8f7dccebf4b27/ExplorerNodes.py
global edWidth, inspWidth, paletteHeight, bottomHeight, underPalette
global edWidth, inspWidth, paletteHeight, bottomHeight, underPalette global oglBoldFont, oglStdFont
def initScreenVars(): global screenWidth, screenHeight, wxDefaultFramePos, wxDefaultFrameSize global edWidth, inspWidth, paletteHeight, bottomHeight, underPalette screenWidth = wx.wxSystemSettings_GetSystemMetric(wx.wxSYS_SCREEN_X) screenHeight = wx.wxSystemSettings_GetSystemMetric(wx.wxSYS_SCREEN_Y) if wx.wxPlatform ...
e4359fe8be74ad1063be6102a3df5884de3474eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e4359fe8be74ad1063be6102a3df5884de3474eb/Preferences.py
for idx, col in zip(range(len(rows)), cols):
for idx, col in zip(range(len(cols)), cols):
def setGrowables(self, rows, cols): self.textConstrLst = [] for idx, row in zip(range(len(rows)), rows): if row: self._appendItem('AddGrowableRow', idx) for idx, col in zip(range(len(rows)), cols): if col: self._appendItem('AddGrowableCol', idx)
ac267a46ca026a6d87fc803f1cb714088202574d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ac267a46ca026a6d87fc803f1cb714088202574d/SizerCompanions.py
(wx.NotebookSizer, 'wx.NotebookSizer', NotebookSizerDTC),
def defaultAction(self): pass
ac267a46ca026a6d87fc803f1cb714088202574d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/ac267a46ca026a6d87fc803f1cb714088202574d/SizerCompanions.py
self.main.editor.openModule(sys.argv[1])
import getopt optlist, args = getopt.getopt(sys.argv[1:], 'D') if len(args): if ('-D', '') in optlist: mod = self.main.editor.openModule(args[0]) mod.debug() else: self.main.editor.openModule(args[0])
def OnInit(self): wxImage_AddHandler(wxJPEGHandler()) wxImage_AddHandler(wxPNGHandler()) wxImage_AddHandler(wxGIFHandler())
397e3ad91cf22a0698970fb2861c121506ab2d1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/397e3ad91cf22a0698970fb2861c121506ab2d1b/Boa.py
main()
if __name__ == '__main__' or hasattr(wxApp, 'debugger'): main()
def main(): app = BoaApp(0) app.quit = false while not app.quit: app.MainLoop()
397e3ad91cf22a0698970fb2861c121506ab2d1b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/397e3ad91cf22a0698970fb2861c121506ab2d1b/Boa.py
def refreshSplitter(self): s = wx.Size(self.GetClientSize().x, self.getHeight()) wOffset, hOffset = self.GetViewStart() puw, puh = self.GetScrollPixelsPerUnit() if hOffset and len(self.nameValues) < s.y /hOffset: hOffset = 0 self.splitter.SetDimensions(wOffset * puw, hOffset * puh * -1, s.x, s.y) self.updateScrollbars(...
d8866fbde769b37ab3c7d37e717f527586d04e7c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d8866fbde769b37ab3c7d37e717f527586d04e7c/Inspector.py
res = self.getNameSig(objPth[0], objPth[1], objmodule, codeBlock)
res = self.getNameSig(objPth[0], objPth[1], module, codeBlock)
def getTipValue(self, word, lnNo): """ Overwritten Mixin method, returns string to display as tool tip """ module = self.model.getModule() objPth = word.split('.') safesplit = methodparse.safesplitfields
e69ef2792e182344ec7a0e186653370caf1db926 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e69ef2792e182344ec7a0e186653370caf1db926/PySourceView.py
def runInThread(self, filename, args, app, interpreterPath, inpLines=[]):
def runInThread(self, filename, args, interpreterPath, inpLines=[], execStart=None, execFinish=None):
def runInThread(self, filename, args, app, interpreterPath, inpLines=[]): cwd = os.path.abspath(os.getcwd()) newCwd = os.path.dirname(os.path.abspath(filename)) os.chdir(newCwd) try: cmd = '"%s" %s %s'%(interpreterPath, os.path.basename(filename), args)
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
from ModRunner import PopenModuleRunner, ExecFinishEvent runner = PopenModuleRunner(None, app, newCwd) runner.run(cmd, inpLines) wx.wxPostEvent(self.editor, ExecFinishEvent(runner))
from ModRunner import PopenModuleRunner runner = PopenModuleRunner(None, newCwd) runner.run(cmd, inpLines, execStart) if execFinish: wx.wxCallAfter(execFinish, runner)
def runInThread(self, filename, args, app, interpreterPath, inpLines=[]): cwd = os.path.abspath(os.getcwd()) newCwd = os.path.dirname(os.path.abspath(filename)) os.chdir(newCwd) try: cmd = '"%s" %s %s'%(interpreterPath, os.path.basename(filename), args)
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
def run(self, args = ''):
def run1(self, args = '', execStart=None, execFinish=None):
def run(self, args = ''): """ Excecute the current saved image of the application. """ if self.savedAs: filename = self.assertLocalFile()
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
self.app, Preferences.getPythonInterpreterPath(), inpLines))
Preferences.getPythonInterpreterPath(), inpLines, execStart, execFinish)) def run(self, args = '', execStart=None, execFinish=None): """ Excecute the current saved image of the application. """ if self.savedAs: filename = self.assertLocalFile() self.editor.statusBar.setHint('Running %s...' % filename) if Preferen...
def run(self, args = ''): """ Excecute the current saved image of the application. """ if self.savedAs: filename = self.assertLocalFile()
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
cmr = ModRunner.CompileModuleRunner(self.editor.erroutFrm, self.app)
cmr = ModRunner.CompileModuleRunner(self.editor.erroutFrm)
def compile(self): import ModRunner oldErr = sys.stderr sys.stderr = ErrorStack.RecFile() try: cmr = ModRunner.CompileModuleRunner(self.editor.erroutFrm, self.app) cmr.run(self.filename, self.data+'\n\n', self.modified)
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
def cyclops(self):
def cyclops(self, args='', execStart=None, execFinish=None):
def cyclops(self): """ Run the saved application thru Cyclops """ if self.savedAs: cwd = os.path.abspath(os.getcwd()) filename = self.assertLocalFile() os.chdir(os.path.dirname(filename)) page = '' try: name = os.path.basename(filename) report = tempfile.mktemp()
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
runner = ExecuteModuleRunner(None, app, profDir)
runner = ExecuteModuleRunner(None, profDir)
def profile(self): filename = self.assertLocalFile() #statFile = os.path.splitext(filename)[0]+'.prof' statFile = tempfile.mktemp() if os.path.exists(statFile): modtime = os.stat(statFile)[stat.ST_MTIME] else: modtime = None profDir = os.path.dirname(filename)
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py
impPos = self.data.find(sourceconst.defImport)
impPos = self.data.find(sourceconst.defImport.strip())
def findImports(self): impPos = self.data.find(sourceconst.defImport) impPos = self.data.find('import', impPos + 1)
c274a0d248176849f9cee500eb808dacee91824d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c274a0d248176849f9cee500eb808dacee91824d/PythonEditorModels.py