bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def finaliser(self): return ['', ' parent.SetStatusWidths(%s)'%`self.widths`] | def finaliser(self): return ['', ' parent.SetStatusWidths(%s)'%`self.widths`] | 28,400 |
def _init_utils(self): pass | def _init_utils(self): pass | 28,401 |
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() | 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() | 28,402 |
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... | 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... | 28,403 |
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... | 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... | 28,404 |
def run_tcpwatch(port): os.system("tcpwatch -L9100:%d" % int(port)) | def run_tcpwatch(port): os.system("tcpwatch -L9100:%d" % int(port)) | 28,405 |
def __init__(self, win): DebugClient.__init__(self, win) EVT_DEBUGGER_START(win, self.win_id, self.OnDebuggerStart) | def __init__(self, win, process_args=''): self.process_args = process_args DebugClient.__init__(self, win) EVT_DEBUGGER_START(win, self.win_id, self.OnDebuggerStart) | 28,406 |
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... | 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... | 28,407 |
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) | def __init__(self, parent, images, debugger): wxListCtrl.__init__(self, parent, wxID_WATCHVIEW, style = wxLC_REPORT) self.InsertColumn(0, 'Attribute', wxLIST_FORMAT_LEFT, 125) self.InsertColumn(1, 'Value', wxLIST_FORMAT_LEFT, 200) | 28,408 |
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) | 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) | 28,409 |
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) | 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) | 28,410 |
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() | 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() | 28,411 |
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() | 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() | 28,412 |
def load_dict(self, localsDict, globalsDict, force=0): | def load_dict(self, localsDict, globalsDict, force=0): | 28,413 |
def OnDelete(self, event): if self.selected != -1: del self.watches[self.selected] self.DeleteItem(self.selected) | def OnDelete(self, event): if self.selected != -1: del self.watches[self.selected] self.DeleteItem(self.selected) | 28,414 |
def OnRightClick(self, event): self.PopupMenu(self.menu, wxPoint(self.x, self.y)) | def OnRightClick(self, event): self.PopupMenu(self.menu, wxPoint(self.x, self.y)) | 28,415 |
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)) | defself.app = self.model.editor.app __init__(self,self.app = self.model.editor.app model,self.app = self.model.editor.app stackself.app = self.model.editor.app =self.app = self.model.editor.app None):self.app = self.model.editor.app bdb.Bdb.__init__(self)self.app = self.model.editor.app wxFrame.__init__(self,self.app =... | 28,416 |
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)) | 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)) | 28,417 |
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)) | 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)) | 28,418 |
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)) | 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)) | 28,419 |
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)) | 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)) | 28,420 |
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)) | 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)) | 28,421 |
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)) | 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)) | 28,422 |
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)) | 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)) | 28,423 |
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)) | 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)) | 28,424 |
def startMainLoop(self): self.model.editor.app.MainLoop() self.mlc = self.mlc + 1 | def startMainLoop(self): self.app.MainLoop() self.mlc = self.mlc + 1 | 28,425 |
def stopMainLoop(self): self.model.editor.app.ExitMainLoop() self.mlc = self.mlc - 1 | def stopMainLoop(self): self.app.ExitMainLoop() self.mlc = self.mlc - 1 | 28,426 |
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 | def interaction(self, frame, info=None): self.frame = frame code = frame.f_code file = code.co_filename base = os.path.basename(file) lineno = frame.f_lineno | 28,427 |
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack | def selectSourceLine(self): if self.stackView.stack and self.toolbar.GetToolState(self.sourceTraceId): stack = self.stackView.stack | 28,428 |
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack | defselectSourceLine(self):ifself.stackView.stack:stack=self.stackView.stack | 28,429 |
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack | def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack | 28,430 |
def selectSourceLine(self): if self.stackView.stack: stack = self.stackView.stack | def 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) selectSourceLine(self): def enableTools(self, enable = ... | 28,431 |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger') | 28,432 |
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 | def destroy(self): if self._destroyed: return self._destroyed = 1 self.breakpts.destroy() self.watches.destroy() self.locs.destroy() self.globs.destroy() self.sb.stateCols = None self.stream_timer = None self._destroyed = 1 | 28,433 |
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 | 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 | 28,434 |
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() | 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() | 28,435 |
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() | 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] self.clearViews() | 28,436 |
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() | def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if self._closing: self.destroy() self.Destroy() elif show_dialog: wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | wxICON_EXCLAMATION ... | 28,437 |
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() | 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() | 28,438 |
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() | def OnStreamTimer(self, event=None, force_timer=0): if self.stream_timer: # One-shot mode. self.updateOutputWindow() | 28,439 |
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... | def updateOutputWindow(self): if 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.appendToO... | 28,440 |
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... | def updateOutputWindow(self): while self.debug_client: info = self.debug_client.pollStreams() if info and self.editor: stdout_text, stderr_text = info if stdout_text: errout.appendToOutput(stdout_text) #self.appendToOutputWindow(stdout_text) if stderr_text: errout.appendToErrors(stderr_text) #self.appendToOutputWindow(... | 28,441 |
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... | 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... | 28,442 |
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... | 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... | 28,443 |
def OnDebuggerOk(self, event): if self._destroyed: return | def OnDebuggerOk(self, event): if self._destroyed: return | 28,444 |
def OnDebuggerException(self, event): if self._destroyed: return | def OnDebuggerException(self, event): if self._destroyed: return | 28,445 |
def OnDebuggerException(self, event): if self._destroyed: return | def OnDebuggerException(self, event): if self._destroyed: return | 28,446 |
def OnStop(self, event): self.clearStepPos() self.enableStepping() self.invalidatePanes() self.updateSelectedPane(do_request=0) self.proceedAndRequestStatus('set_quit') | def OnStop(self, event): self.clearStepPos() self.enableStepping() self.invalidatePanes() self.updateSelectedPane(do_request=0) self.proceedAndRequestStatus('set_quit') | 28,447 |
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... | def OnCloseWindow(self, event): try: self.killDebugger() finally: # 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.editor = None # W... | 28,448 |
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... | 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... | 28,449 |
def writeImports(self): return 'from wxPython.lib.maskededit import *' | def writeImports(self): return 'from wxPython.lib.maskededit import *' | 28,450 |
def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | def properties(self): props = WindowDTC.properties(self) props.update({'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | 28,451 |
def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | def properties(self): return {'Editable': ('CtrlRoute', wxGridPtr.IsEditable, wxGridPtr.EnableEditing), 'GridLinesEnabled': ('CtrlRoute', wxGridPtr.GridLinesEnabled, wxGridPtr.EnableGridLines)} | 28,452 |
def OnItemDeselect(self, event): self.selected = -1 event.Skip() | def OnItemDeselect(self, event): self.selected = -1 event.Skip() | 28,453 |
def __init__(self, parent, modimages, root, editor): wxSplitterWindow.__init__(self, parent, wxID_PFE, style = wxNO_3D|wxSP_3D)#style = wxSP_3D) #wxSP_NOBORDER) | def __init__(self, parent, modimages, root, editor): wxSplitterWindow.__init__(self, parent, wxID_PFE, style = wxNO_3D|wxSP_3D)#style = wxSP_3D) #wxSP_NOBORDER) | 28,454 |
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 ... | 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(list(menuLst)) for wID, name, meth, bmp in tbMenus: if name == '-' and not bmp: toolbar.AddSeparator() eli... | 28,455 |
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 ... | 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 ... | 28,456 |
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():... | def OnOpen(self, event): if self.list.selected != -1: name = self.list.GetItemText(self.list.selected) if name == '..': 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(): tItm = self.tree.Ge... | 28,457 |
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():... | 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): treeItem = self.tree.GetItemParent(self.tree.GetSelection()) if treeItem.IsOk(): self.tree.SelectItem(treeItem) else: item = self.list.items[self... | 28,458 |
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():... | 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():... | 28,459 |
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 | 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(option) if existed: del sectdict[key] return existed | 28,460 |
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 | 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[option] return existed | 28,461 |
def getDefaultData(self): return sourceconst.defSig %(self.modelIdentifier, '') | def getDefaultData(self): return sourceconst.defSig %(self.modelIdentifier, '') | 28,462 |
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... | 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... | 28,463 |
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... | 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... | 28,464 |
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... | 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... | 28,465 |
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'... | 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'... | 28,466 |
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... | 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... | 28,467 |
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... | 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... | 28,468 |
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... | 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... | 28,469 |
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)... | def processArgs(argv): _doDebug = _doRemoteDebugSvr = _constricted = _emptyEditor = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:hv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'help', 'version']) if (('-D', '') in opt... | 28,470 |
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)... | def processArgs(argv): _doDebug = _constricted = 0 _startupfile = '' _startupModules = () import getopt optlist, args = getopt.getopt(argv, 'CDTSBO:ERhv', ['Constricted', 'Debug', 'Trace', 'StartupFile', 'BlockHomePrefs', 'OverridePrefsDirName', 'EmptyEditor', 'RemoteDebugServer', 'help', 'version']) if (('-D', '') in ... | 28,471 |
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)... | 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)... | 28,472 |
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)... | 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)... | 28,473 |
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)... | 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)... | 28,474 |
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)... | 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)... | 28,475 |
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)... | 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)... | 28,476 |
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)... | 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)... | 28,477 |
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)... | 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)... | 28,478 |
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)... | 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)... | 28,479 |
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)... | 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)... | 28,480 |
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)... | 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)... | 28,481 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,482 |
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... | 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... | 28,483 |
def __init__(self, parent, model): ListCtrlView.__init__(self, parent, model, wx.wxLC_REPORT, (('Start', self.OnStart, '-', ''), ('End', self.OnEnd, '-', ''), ('Delete', self.OnDelete, '-', ''), ), 1) | def __init__(self, parent, model): ListCtrlView.__init__(self, parent, model, wx.LC_REPORT, (('Start', self.OnStart, '-', ''), ('End', self.OnEnd, '-', ''), ('Delete', self.OnDelete, '-', ''), ), 1) | 28,484 |
def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx] | def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx] | 28,485 |
def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx] | def OnEnd(self, event): selIdx = self.getSelectedIndex() start, end, desc = self.times[selIdx] | 28,486 |
def OnDelete(self, event): selIdx = self.getSelectedIndex() | def OnDelete(self, event): selIdx = self.getSelectedIndex() | 28,487 |
def OnDelete(self, event): selIdx = self.getSelectedIndex() | def OnDelete(self, event): selIdx = self.getSelectedIndex() | 28,488 |
def getPropertyItems(self): res = [] attrs = self.fsNode.stdAttrs | def getPropertyItems(self): res = [] attrs = self.fsNode.stdAttrs | 28,489 |
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,... | 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, s... | 28,490 |
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 | 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 | 28,491 |
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | 28,492 |
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | 28,493 |
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) | 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) | 28,494 |
def selectSection(self, lineno, start, word): self.gotoLine(lineno) length = len(word) startPos = self.GetLineStartPos(lineno) + start endPos = startPos + length self.SetSelection(startPos, endPos) | def selectSection(self, lineno, start, word): self.gotoLine(lineno) length = len(word) startPos = self.PositionFromLine(lineno) + start endPos = startPos + length self.SetSelection(startPos, endPos) | 28,495 |
def selectLine(self, lineno): self.GotoLine(lineno) sp = self.GetLineStartPos(lineno) ep = self.GetLineStartPos(lineno+1)-1 self.SetSelection(sp, ep) | def selectLine(self, lineno): self.GotoLine(lineno) sp = self.PositionFromLine(lineno) ep = self.PositionFromLine(lineno+1)-1 self.SetSelection(sp, ep) | 28,496 |
def updateStatusBar(self): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) st = pos - self.GetLineStartPos(ln) | def updateStatusBar(self): pos = self.GetCurrentPos() ln = self.GetLineFromPos(pos) st = pos - self.GetLineStartPos(ln) | 28,497 |
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*' ') | def insertCodeBlock(self, text): cp = self.GetCurrentPos() ln = self.LineFromPosition(cp) indent = cp - self.PositionFromLine(ln) lns = string.split(text, self.eol) text = string.join(lns, self.eol+indent*' ') | 28,498 |
def isModified(self): return self.GetModified() or self.nonUserModification | def isModified(self): return self.GetModified() or self.nonUserModification | 28,499 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.