rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
return ['', ' parent.SetStatusWidths(%s)'%`self.widths`]
return ['', sourceconst.bodyIndent+'parent.SetStatusWidths(%s)'%`self.widths`]
def finaliser(self): return ['', ' parent.SetStatusWidths(%s)'%`self.widths`]
6f23f8e79c8794e46587dcfdb5a3aa7271320162 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6f23f8e79c8794e46587dcfdb5a3aa7271320162/ContainerCompanions.py
def _init_utils(self):
def _init_utils(self):
def _init_utils(self): pass
2f61150bfb19050d54fd22943f14bc5e674f4144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2f61150bfb19050d54fd22943f14bc5e674f4144/CVSResults.py
def _init_ctrls(self, prnt):
def _init_ctrls(self, prnt):
def _init_ctrls(self, prnt): wxDialog.__init__(self, size = wxSize(488, 323), id = wxID_CVSRESULTSDLG, title = 'CVS Results', parent = prnt, name = 'CVSResultsDlg', style = wxDEFAULT_DIALOG_STYLE, pos = wxPoint(138, 124)) self._init_utils()
2f61150bfb19050d54fd22943f14bc5e674f4144 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2f61150bfb19050d54fd22943f14bc5e674f4144/CVSResults.py
def spawnChild(monitor, process):
def spawnChild(monitor, process, args=''):
def spawnChild(monitor, process): """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(sys.path...
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
cmd = '%s "%s"' % (sys.executable, script_fn)
cmd = '%s "%s" %s' % (sys.executable, script_fn, args)
def spawnChild(monitor, process): """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(sys.path...
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
def run_tcpwatch(port): os.system("tcpwatch -L9100:%d" % int(port)) start_new_thread(run_tcpwatch, (port,)) time.sleep(1) port = 9100
new_port = 9100 def run_tcpwatch(port1, port2): os.system("tcpwatch -L %d:%d" % (int(port1), int(port2))) start_new_thread(run_tcpwatch, (new_port, port)) time.sleep(3) port = new_port
def run_tcpwatch(port): os.system("tcpwatch -L9100:%d" % int(port))
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
def __init__(self, win):
def __init__(self, win, process_args=''): self.process_args = process_args
def __init__(self, win): DebugClient.__init__(self, win) EVT_DEBUGGER_START(win, self.win_id, self.OnDebuggerStart)
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
self.server, self.input_stream, self.error_stream, \ self.processId = spawnChild(self, process)
(self.server, self.input_stream, self.error_stream, self.processId) = spawnChild( self, process, self.process_args)
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, self...
1281f8194c9b2b594d12796ee61cfbb25525fa3a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1281f8194c9b2b594d12796ee61cfbb25525fa3a/ChildProcessClient.py
style = wxLC_REPORT | wxLC_SINGLE_SEL )
style = wxLC_REPORT)
def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200)
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
id = NewId()
id = wxNewId() self.menu.Append(id, 'Add') EVT_MENU(self, id, self.OnAdd) id = wxNewId() self.menu.Append(id, 'Edit') EVT_MENU(self, id, self.OnEdit) id = wxNewId()
def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200)
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
id = NewId()
id = wxNewId()
def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200)
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.watches.append((name, local))
self.watches.append([name, local])
def add_watch(self, name, local): if name: self.watches.append((name, local)) else: dlg = wxTextEntryDialog(self, 'Enter name:', 'Add a watch:', '') try: if dlg.ShowModal() == wxID_OK: self.watches.append((dlg.GetValue(), local)) finally: dlg.Destroy()
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.watches.append((dlg.GetValue(), local))
self.watches.append([dlg.GetValue(), local])
def add_watch(self, name, local): if name: self.watches.append((name, local)) else: dlg = wxTextEntryDialog(self, 'Enter name:', 'Add a watch:', '') try: if dlg.ShowModal() == wxID_OK: self.watches.append((dlg.GetValue(), local)) finally: dlg.Destroy()
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
def load_dict(self, localsDict, globalsDict, force=0):
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
del self.watches[self.selected] self.DeleteItem(self.selected)
selItems = self.getSelection() selItems.sort() selItems.reverse() for idx in selItems: del self.watches[idx] self.DeleteItem(idx)
def OnDelete(self, event): if self.selected != -1: del self.watches[self.selected] self.DeleteItem(self.selected)
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.PopupMenu(self.menu, wxPoint(self.x, self.y))
if self.selected != -1: local = self.watches[self.selected][1] self.menu.Check(self.localId, local) self.menu.Check(self.globalId, not local) self.PopupMenu(self.menu, wxPoint(self.x, self.y)) def OnEvalLocal(self, event): if self.selected != -1: for idx in self.getSelection(): self.watches[idx][1] = true self.debugg...
def OnRightClick(self, event): self.PopupMenu(self.menu, wxPoint(self.x, self.y))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.app = self.model.editor.app
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.runId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.stepId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.overId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.outId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.stopId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
Utils.AddToolButtonBmpIS(self, self.toolbar,
self.sourceTraceId = Utils.AddToolButtonBmpIS(self, self.toolbar,
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight))
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.model.editor.app.MainLoop()
self.app.MainLoop()
def startMainLoop(self): self.model.editor.app.MainLoop() self.mlc = self.mlc + 1
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self.model.editor.app.ExitMainLoop()
self.app.ExitMainLoop()
def stopMainLoop(self): self.model.editor.app.ExitMainLoop() self.mlc = self.mlc - 1
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
print 'interaction'
def interaction(self, frame, info=None): print 'interaction' self.frame = frame code = frame.f_code file = code.co_filename base = os.path.basename(file) lineno = frame.f_lineno
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
if self.stackView.stack:
if self.stackView.stack and self.toolbar.GetToolState(self.sourceTraceId):
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
print 'ssl', lineno
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
def enableTools(self, enable = true): self.toolbar.EnableTool(self.runId, enable) self.toolbar.EnableTool(self.stepId, enable) self.toolbar.EnableTool(self.overId, enable) self.toolbar.EnableTool(self.outId, enable) self.toolbar.EnableTool(self.stopId, enable)
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack
8055148f9a8fcabcece9112831730017237be8e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/8055148f9a8fcabcece9112831730017237be8e6/Debugger.py
self._destroyed = 0
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger')
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if self._destroyed: return
if self._destroyed: return self._destroyed = 1
def destroy(self): if self._destroyed: return self.breakpts.destroy() self.watches.destroy() self.locs.destroy() self.globs.destroy() self.sb.stateCols = None self.stream_timer = None self._destroyed = 1
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
self.stream_timer = None self._destroyed = 1
if self.stream_timer is not None: self.stream_timer.Stop() self.stream_timer = None
def destroy(self): if self._destroyed: return self.breakpts.destroy() self.watches.destroy() self.locs.destroy() self.globs.destroy() self.sb.stateCols = None self.stream_timer = None self._destroyed = 1
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if self._destroyed: return
if self._destroyed: return
def killDebugger(self): if self._destroyed: return self.running = 0 if self.debug_client: try: self.debug_client.kill() except: print 'Error on killing debugger: %s: %s'%sys.exc_info()[:2] else: self.debug_client = None self.clearViews()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
else: self.debug_client = None
def killDebugger(self): if self._destroyed: return self.running = 0 if self.debug_client: try: self.debug_client.kill() except: print 'Error on killing debugger: %s: %s'%sys.exc_info()[:2] else: self.debug_client = None self.clearViews()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if show_dialog:
if self._closing: self.destroy() self.Destroy() elif show_dialog:
def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if show_dialog: wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE) self.Close() self.Destroy()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
self.Close() self.Destroy() def OnStreamTimer(self, event=None, force_timer=0):
def OnStreamTimer(self, event=None):
def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if show_dialog: wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION | wxCENTRE) self.Close() self.Destroy()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if not self.stream_timer.IsRunning(): self.stream_timer.Start(100)
def OnStreamTimer(self, event=None, force_timer=0): if self.stream_timer: if not self.stream_timer.IsRunning(): self.stream_timer.Start(100) # One-shot mode. self.updateOutputWindow()
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
while self.debug_client:
if self.debug_client:
def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info: errout = self.editor.erroutFrm stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.append...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if info: errout = self.editor.erroutFrm
if info and self.editor:
def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info: errout = self.editor.erroutFrm stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.append...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
errout.appendToOutput(stdout_text)
self.editor.erroutFrm.appendToOutput(stdout_text)
def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info: errout = self.editor.erroutFrm stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.append...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
errout.appendToErrors(stderr_text) if not stdout_text and not stderr_text: break else: break
self.editor.erroutFrm.appendToErrors(stderr_text)
def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info: errout = self.editor.erroutFrm stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.append...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if self._destroyed: return
if self._destroyed: return
def OnDebuggerOk(self, event): if self._destroyed: return
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
if self._destroyed: return self.restoreDebugger()
if self._destroyed: return
def OnDebuggerException(self, event): if self._destroyed: return
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
def OnDebuggerException(self, event): if self._destroyed: return
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
self.clearStepPos() self.enableStepping() self.invalidatePanes() self.updateSelectedPane(do_request=0) self.proceedAndRequestStatus('set_quit')
if STOP_GENTLY: self.clearStepPos() self.enableStepping() self.invalidatePanes() self.updateSelectedPane(do_request=0) self.proceedAndRequestStatus('set_quit') else: self.killDebugger()
def OnStop(self, event): self.clearStepPos() self.enableStepping() self.invalidatePanes() self.updateSelectedPane(do_request=0) self.proceedAndRequestStatus('set_quit')
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
self.destroy()
def OnCloseWindow(self, event): try: self.killDebugger() finally: self.destroy() # closing must succeed if self.editor: try: if self.isInShellNamepace(): self.editor.shell.debugShell(0, None) except: pass #cls, err = sys.exc_info()[:2] #print 'close shell debug failed', cls, str(err) self.editor.debugger = None self.ed...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
self.Hide()
if not was_alive: self.destroy() self.Destroy()
def OnCloseWindow(self, event): try: self.killDebugger() finally: self.destroy() # closing must succeed if self.editor: try: if self.isInShellNamepace(): self.editor.shell.debugShell(0, None) except: pass #cls, err = sys.exc_info()[:2] #print 'close shell debug failed', cls, str(err) self.editor.debugger = None self.ed...
3ec3e7175bb4b122e1be82d87441a901fe9ee83b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/3ec3e7175bb4b122e1be82d87441a901fe9ee83b/Debugger.py
def writeImports(self): return 'from wxPython.lib.maskededit import *'
def writeImports(self): return 'from wxPython.lib.maskededit import *'
22f14c564684f7d92de0eb0e3a464c425f617241 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/22f14c564684f7d92de0eb0e3a464c425f617241/LibCompanions.py
return {'Editable': ('CtrlRoute',
props = WindowDTC.properties(self) props.update({'Editable': ('CtrlRoute',
def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)}
085140381ced7cf019e2654a4186cdc56dafd88d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/085140381ced7cf019e2654a4186cdc56dafd88d/ListCompanions.py
'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)}
'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)}) return props
def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)}
085140381ced7cf019e2654a4186cdc56dafd88d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/085140381ced7cf019e2654a4186cdc56dafd88d/ListCompanions.py
def OnItemDeselect(self, event): self.selected = -1 event.Skip()
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
self.list = PackageFolderList(self, root, updateNotify = self.OnUpdateNotify)
self.list = PackageFolderList(self, root, updateNotify = self.OnUpdateNotify)
def __init__(self, parent, modimages, root, editor): wxSplitterWindow.__init__(self, parent, wxID_PFE, style = wxNO_3D|wxSP_3D)#style = wxSP_3D) #wxSP_NOBORDER)
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
tbMenus.extend(menuLst)
tbMenus.extend(list(menuLst))
def addTools(self, toolbar): if self.list.node and self.controllers.has_key(self.list.node.protocol): prot = self.list.node.protocol tbMenus = [] for menuLst in self.controllers[prot].toolbarMenus: tbMenus.extend(menuLst) for wID, name, meth, bmp in tbMenus: if name == '-' and not bmp: toolbar.AddSeparator() elif bmp ...
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
Utils.AddToolButtonBmpObject(self.editor, toolbar, IS.load(bmp), name, meth)
Utils.AddToolButtonBmpObject(self.editor, toolbar, IS.load(bmp), name, meth)
def addTools(self, toolbar): if self.list.node and self.controllers.has_key(self.list.node.protocol): prot = self.list.node.protocol tbMenus = [] for menuLst in self.controllers[prot].toolbarMenus: tbMenus.extend(menuLst) for wID, name, meth, bmp in tbMenus: if name == '-' and not bmp: toolbar.AddSeparator() elif bmp ...
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
nd = self.list.node
def OnOpen(self, event): if self.list.selected != -1: name = self.list.GetItemText(self.list.selected) if name == '..': nd = self.list.node if not nd.openParent(self.editor): self.tree.SelectItem(self.tree.GetItemParent(self.tree.GetSelection())) else: item = self.list.items[self.list.selected-1] if item.isFolderish():...
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
self.tree.SelectItem(self.tree.GetItemParent(self.tree.GetSelection()))
treeItem = self.tree.GetItemParent(self.tree.GetSelection()) if treeItem.IsOk(): self.tree.SelectItem(treeItem)
def OnOpen(self, event): if self.list.selected != -1: name = self.list.GetItemText(self.list.selected) if name == '..': nd = self.list.node if not nd.openParent(self.editor): self.tree.SelectItem(self.tree.GetItemParent(self.tree.GetSelection())) else: item = self.list.items[self.list.selected-1] if item.isFolderish():...
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
chid = self.tree.getChildNamed(self.tree.GetSelection(), name)
chid = self.tree.getChildNamed(self.tree.GetSelection(), name)
def OnOpen(self, event): if self.list.selected != -1: name = self.list.GetItemText(self.list.selected) if name == '..': nd = self.list.node if not nd.openParent(self.editor): self.tree.SelectItem(self.tree.GetItemParent(self.tree.GetSelection())) else: item = self.list.items[self.list.selected-1] if item.isFolderish():...
94453ee06311120a0a317edd2a69c2c97ffeb934 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/94453ee06311120a0a317edd2a69c2c97ffeb934/Explorer.py
existed = sectdict.has_key(key)
existed = sectdict.has_key(option)
def remove_option(self, section, option): """Remove an option.""" if not section or section == "DEFAULT": sectdict = self.__defaults else: try: sectdict = self.__sections[section] except KeyError: raise NoSectionError(section) existed = sectdict.has_key(key) if existed: del sectdict[key] return existed
36f1540d9cc2bab3172302a45d4bf9c0d8b055c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/36f1540d9cc2bab3172302a45d4bf9c0d8b055c4/ConfigParser.py
del sectdict[key]
del sectdict[option]
def remove_option(self, section, option): """Remove an option.""" if not section or section == "DEFAULT": sectdict = self.__defaults else: try: sectdict = self.__sections[section] except KeyError: raise NoSectionError(section) existed = sectdict.has_key(key) if existed: del sectdict[key] return existed
36f1540d9cc2bab3172302a45d4bf9c0d8b055c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/36f1540d9cc2bab3172302a45d4bf9c0d8b055c4/ConfigParser.py
def getDefaultData(self): return sourceconst.defSig %(self.modelIdentifier, '')
def getDefaultData(self): return sourceconst.defSig %(self.modelIdentifier, '')
c1e79d1de1efdc4c5892eb9551c9859c50112a88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c1e79d1de1efdc4c5892eb9551c9859c50112a88/LinkAppSupport.plug-in.py
def run(self, args = ''):
def findAppInModules(self, args):
def run(self, args = ''): # find app module for name, Model in self.moduleModels.items(): if Model.modelIdentifier in Controllers.appModelIdReg: filepath = self.moduleFilename(name) if self.editor.modules.has_key(filepath): model = self.editor.modules[filepath].model else: model = Model('', filepath, '', self.editor, 0...
c1e79d1de1efdc4c5892eb9551c9859c50112a88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c1e79d1de1efdc4c5892eb9551c9859c50112a88/LinkAppSupport.plug-in.py
model.run(args) return
return model return None
def run(self, args = ''): # find app module for name, Model in self.moduleModels.items(): if Model.modelIdentifier in Controllers.appModelIdReg: filepath = self.moduleFilename(name) if self.editor.modules.has_key(filepath): model = self.editor.modules[filepath].model else: model = Model('', filepath, '', self.editor, 0...
c1e79d1de1efdc4c5892eb9551c9859c50112a88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c1e79d1de1efdc4c5892eb9551c9859c50112a88/LinkAppSupport.plug-in.py
wxLogWarning('No Application module found in modules list to link to')
def run(self, args = ''): app = self.findAppInModules(args) if app: app.run(args) else: wxLogWarning('No Application module found in modules list to link to') def debug(self, params=None, cont_if_running=0, cont_always=0, temp_breakpoint=None): app = self.findAppInModules(params) if app: app.debug(params, cont_if_runn...
def run(self, args = ''): # find app module for name, Model in self.moduleModels.items(): if Model.modelIdentifier in Controllers.appModelIdReg: filepath = self.moduleFilename(name) if self.editor.modules.has_key(filepath): model = self.editor.modules[filepath].model else: model = Model('', filepath, '', self.editor, 0...
c1e79d1de1efdc4c5892eb9551c9859c50112a88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c1e79d1de1efdc4c5892eb9551c9859c50112a88/LinkAppSupport.plug-in.py
self.SetItemData(i, i)
self.SetItemData(i-1, i-1)
def refreshCtrl(self): ListCtrlView.refreshCtrl(self) if self.stats: self.statKeyList = self.stats.keys() self.statKeyList.sort() i = 0 for filename, lineno, funcname in self.statKeyList: stats = self.stats[(filename, lineno, funcname)] i = self.addReportItems(i, (os.path.basename(filename), str(lineno), funcname, '%d'...
d06549549b9b186bd2f966c98b025bf9cab794b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d06549549b9b186bd2f966c98b025bf9cab794b2/ProfileView.py
self.queue.put(name)
if string.strip(name): self.queue.put(name)
def run(self, host='127.0.0.1', port=socketPort): #print 'running listner thread %d'%id(self) import socket from select import select # Open a socket and listen. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((host, port)) except socket.error, err: ##print 'Socket error', str(err) # printing from thr...
b3e0036832bc8c7134065b41c3a8bc7fe8e88814 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b3e0036832bc8c7134065b41c3a8bc7fe8e88814/EditorUtils.py
if names:
if names:
def sendToRunningBoa(names, host='127.0.0.1', port=50007): import socket try: if names: print 'Sent', for name in names: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) # do not change files of form [prot]://[path] if string.find(name, '://') == -1: name = os.path.abspath(name) s.send(name...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
doDebug = constricted = 0
doDebug = constricted = emptyEditor = 0
def sendToRunningBoa(names, host='127.0.0.1', port=50007): import socket try: if names: print 'Sent', for name in names: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((host, port)) # do not change files of form [prot]://[path] if string.find(name, '://') == -1: name = os.path.abspath(name) s.send(name...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
_doDebug = _constricted = 0
_doDebug = _doRemoteDebugSvr = _constricted = _emptyEditor = 0
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version'])
optlist, args = getopt.getopt(argv, 'CDTSBO:ERhv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'EmptyEditor', 'RemoteDebugServer', 'help', 'version'])
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
return _doDebug, _startupfile, _startupModules, _constricted, optlist, args
return (_doDebug, _startupfile, _startupModules, _constricted, _emptyEditor, _doRemoteDebugSvr, optlist, args)
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
doDebug, startupfile, startupModules, constricted, opts, args = \ processArgs(sys.argv[1:])
(doDebug, startupfile, startupModules, constricted, emptyEditor, doDebugSvr, opts, args) = processArgs(sys.argv[1:]) if doDebugSvr and startupModules: print 'Running as a Remote Debug Server' from Debugger.RemoteServer import start start(username='', password='') sys.argv = startupModules execfile(sys.argv[0], {'__n...
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
if (wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER) < __version__.wx_version:
if wxVERSION < __version__.wx_version:
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
wxMessageBox('Sorry! This version of Boa requires at least wxPython %d.%d.%d'%ver_required,
wxMessageBox('Sorry! This version of Boa requires at least '\ 'wxPython %d.%d.%d'%__version__.ver_required,
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
'Module for in-process debugging of wxPython and Python apps',
'Module for out-of-process debugging of Python apps',
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
'ExtraZopeCompanions.plug-in': [0, '', 'Plug-ins/ExtraZopeCompanions.plug-in.py'],
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
'PascalSupport.plug-in': [0, '', 'Plug-ins/PascalSupport.plug-in.py'],
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
'ProdFormulator.plug-in': [0, '', 'Plug-ins/ProdFormulator.plug-in.py'], 'ProdPageTemplates.plug-in': [0, '', 'Plug-ins/ProdPageTemplates.plug-in.py'],
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
'UserCompanions.plug-in': [0, '', 'Plug-ins/UserCompanions.plug-in.py'],
def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in optlist or ('--Debug', '') in optlist)...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
editor.restoreEditorState()
if not emptyEditor: editor.restoreEditorState()
def OnInit(self): wxInitAllImageHandlers()
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
def main(argv=None): # XXX Custom installations, should distutil libs be used for this ? # XXX Binary test is no longer valid, maybe type of __import__ function # Only install if it's not a 'binary' distribution if Preferences.installBCRTL and hasattr(wx, '__file__'): join, dirname = os.path.join, os.path.dirname wxPyt...
f6b199ece3b4869b1e18a280f16305d1a63f8b49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f6b199ece3b4869b1e18a280f16305d1a63f8b49/Boa.py
ListCtrlView.__init__(self, parent, model, wx.wxLC_REPORT,
ListCtrlView.__init__(self, parent, model, wx.LC_REPORT,
def __init__(self, parent, model): ListCtrlView.__init__(self, parent, model, wx.wxLC_REPORT, (('Start', self.OnStart, '-', ''), ('End', self.OnEnd, '-', ''), ('Delete', self.OnDelete, '-', ''), ), 1)
46afb5fb2ee38e519ce9d813e1e12ac90f3129c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46afb5fb2ee38e519ce9d813e1e12ac90f3129c9/AppTimeTrack.plug-in.py
dlg = wx.wxTextEntryDialog(self, 'Start time :%s\nEnd time :%s\n\n'\
dlg = wx.TextEntryDialog(self, 'Start time :%s\nEnd time :%s\n\n'\
def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx]
46afb5fb2ee38e519ce9d813e1e12ac90f3129c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46afb5fb2ee38e519ce9d813e1e12ac90f3129c9/AppTimeTrack.plug-in.py
if dlg.ShowModal() == wx.wxID_OK:
if dlg.ShowModal() == wx.ID_OK:
def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx]
46afb5fb2ee38e519ce9d813e1e12ac90f3129c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46afb5fb2ee38e519ce9d813e1e12ac90f3129c9/AppTimeTrack.plug-in.py
dlg = wx.wxMessageDialog(self, 'Are you sure?', 'Delete', wx.wxOK | wx.wxCANCEL | wx.wxICON_QUESTION)
dlg = wx.MessageDialog(self, 'Are you sure?', 'Delete', wx.OK | wx.CANCEL | wx.ICON_QUESTION)
def OnDelete(self, event): selIdx = self.getSelectedIndex()
46afb5fb2ee38e519ce9d813e1e12ac90f3129c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46afb5fb2ee38e519ce9d813e1e12ac90f3129c9/AppTimeTrack.plug-in.py
if dlg.ShowModal() == wx.wxID_OK:
if dlg.ShowModal() == wx.ID_OK:
def OnDelete(self, event): selIdx = self.getSelectedIndex()
46afb5fb2ee38e519ce9d813e1e12ac90f3129c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46afb5fb2ee38e519ce9d813e1e12ac90f3129c9/AppTimeTrack.plug-in.py
time.strftime(self.timeFmt, time.gmtime(value))) )
time.strftime(self.timeFmt, time.localtime(value))) )
def getPropertyItems(self): res = [] attrs = self.fsNode.stdAttrs
bc73b4674892295219189023e1bd8ef32d724f27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/bc73b4674892295219189023e1bd8ef32d724f27/FileExplorer.py
def __init__(self, parent, wId, model, actions, defaultAction = -1): wxStyledTextCtrl.__init__(self, parent, wId, style = wxCLIP_CHILDREN | wxSUNKEN_BORDER) a = (('Refresh', self.OnRefresh, self.refreshBmp, keyDefs['Refresh']), ('-', None, '', ()), ('Undo', self.OnEditUndo, self.undoBmp, ()), ('Redo', self.OnEditRedo,...
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
self.SetText(self.getModelData()) self.EmptyUndoBuffer() self.GotoPos(self.pos) curVsblLn = self.GetFirstVisibleLine() self.ScrollBy(0, prevVsblLn - curVsblLn)
self._blockUpdate = true try: newData = self.getModelData() txtLen = self.GetTextLength() if txtLen and newData != self.GetText() or not txtLen: self.SetText(newData) if not txtLen: self.EmptyUndoBuffer() self.GotoPos(self.pos) curVsblLn = self.GetFirstVisibleLine() self.LineScroll(0, prevVsblLn - curVsblLn) self.SetSa...
def refreshCtrl(self): if wxPlatform == '__WXGTK__': self.NoUpdateUI = 1 ## disable event handler # set whole document to current EOL style fixing mixed CRLF/LF code that # can be introduced by pasting from the clipboard
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
self.InsertText(self.GetTextLength(), ' ')
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
self.EmptyUndoBuffer()
self.SetSavePoint()
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
self.ScrollBy(0, lineno - vl) if offset != -1: self.SetCurrentPosition(self.GetCurrentPos()+offset+1)
self.LineScroll(0, lineno - vl) if offset != -1: self.SetCurrentPos(self.GetCurrentPos()+offset+1)
def gotoLine(self, lineno, offset = -1): self.GotoLine(lineno) vl = self.GetFirstVisibleLine() self.ScrollBy(0, lineno - vl) if offset != -1: self.SetCurrentPosition(self.GetCurrentPos()+offset+1)
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
startPos = self.GetLineStartPos(lineno) + start
startPos = self.PositionFromLine(lineno) + start
def selectSection(self, lineno, start, word): self.gotoLine(lineno) length = len(word) startPos = self.GetLineStartPos(lineno) + start endPos = startPos + length self.SetSelection(startPos, endPos)
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
sp = self.GetLineStartPos(lineno) ep = self.GetLineStartPos(lineno+1)-1
sp = self.PositionFromLine(lineno) ep = self.PositionFromLine(lineno+1)-1
def selectLine(self, lineno): self.GotoLine(lineno) sp = self.GetLineStartPos(lineno) ep = self.GetLineStartPos(lineno+1)-1 self.SetSelection(sp, ep)
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
ln = self.GetLineFromPos(pos) st = pos - self.GetLineStartPos(ln)
ln = self.LineFromPosition(pos) st = pos - self.PositionFromLine(ln)
def updateStatusBar(self): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) st = pos - self.GetLineStartPos(ln)
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
ln = self.GetLineFromPos(cp) indent = cp - self.GetLineStartPos(ln)
ln = self.LineFromPosition(cp) indent = cp - self.PositionFromLine(ln)
def insertCodeBlock(self, text): cp = self.GetCurrentPos() ln = self.GetLineFromPos(cp) indent = cp - self.GetLineStartPos(ln) lns = string.split(text, self.eol) text = string.join(lns, self.eol+indent*' ')
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py
return self.GetModified() or self.nonUserModification
return self.GetModify() or self.nonUserModification
def isModified(self): return self.GetModified() or self.nonUserModification
f2d9de9b91fb77d3ba05e87f8e4569617622e102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f2d9de9b91fb77d3ba05e87f8e4569617622e102/SourceViews.py