bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
>>> def foo(x, y, z=-1.0, *args, **kw): | >>> def foo(x, y, z=-1.0, *args, **kw): | 29,800 |
>>> def foo(x, y, z=-1.0, *args, **kw): | >>> def foo(x, y, z=-1.0, *args, **kw): | 29,801 |
>>> def foo(x, y, z=-1.0, *args, **kw): | >>> def foo(x, y, z=-1.0, *args, **kw): | 29,802 |
>>> def foo(x, y, z=-1.0, *args, **kw): | >>> def foo(x, y, z=-1.0, *args, **kw): | 29,803 |
def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] el... | def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] el... | 29,804 |
def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] el... | def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] el... | 29,805 |
def class_get(f): if hasattr(f, '__init__'): return f.__name__, f.__init__.im_func else: return f.__name, lambda: None | def class_get(f): if hasattr(f, '__init__'): return f.__name__, f.__init__.im_func else: return f.__name, lambda: None | 29,806 |
def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | 29,807 |
def addImagesToFS(): for name, path, type in [ ('Boa.jpg', 'Images/Shared/Boa.jpg', wxBITMAP_TYPE_JPEG), ('PythonPowered.png', 'Images/Shared/PythonPowered.png', wxBITMAP_TYPE_PNG), ('wxPyButton.png', 'Images/Shared/wxPyButton.png', wxBITMAP_TYPE_PNG), ('wxWinButton.png', 'Images/Shared/wxWinButton.png', wxBITMAP_TYPE_... | def addImagesToFS(): for name, path, type in [ ('Boa.jpg', 'Images/Shared/Boa.jpg', wxBITMAP_TYPE_JPEG), ('PythonPowered.png', 'Images/Shared/PythonPowered.png', wxBITMAP_TYPE_PNG), ('wxPyButton.png', 'Images/Shared/wxPyButton.png', wxBITMAP_TYPE_PNG), ('wxWinButton.png', 'Images/Shared/wxWinButton.png', wxBITMAP_TYPE_... | 29,808 |
def OnLinkClick(self, event): clicked = event.linkinfo[0] if clicked == 'Credits': self.html.SetPage(credits_html % ('memory:PythonPowered.png', 'memory:wxPyButton.png', 'memory:wxWinButton.png')) elif clicked == 'Back': self.setPage() #self.html.HistoryBack() elif clicked == 'Python': self.gotoInternetUrl('http://www.... | def OnLinkClick(self, event): clicked = event.linkinfo[0] if clicked == 'Credits': self.html.SetPage(credits_html % ('memory:PythonPowered.png', 'memory:wxPyButton.png', 'memory:wxWinButton.png', 'memory:Debian.png', 'memory:Gentoo.png',)) elif clicked == 'Back': self.setPage() #self.html.HistoryBack() elif clicked == ... | 29,809 |
def monitorModuleCount(self): self._live = true lastCnt = 0 if sys and len(sys.modules) >= self.moduleTotal: wx.wxPostEvent(self, ModCntUpdateEvent(self.moduleTotal, 'importing')) else: while self and self._live and sys and len(sys.modules) < self.moduleTotal: mc = len(sys.modules) if mc > lastCnt: lastCnt = mc wx.wxPo... | def monitorModuleCount(self): self._live = true lastCnt = 0 if self and sys and len(sys.modules) >= self.moduleTotal: wx.wxPostEvent(self, ModCntUpdateEvent(self.moduleTotal, 'importing')) else: while self and self._live and sys and len(sys.modules) < self.moduleTotal: mc = len(sys.modules) if mc > lastCnt: lastCnt = m... | 29,810 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 29,811 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 29,812 |
def OnInit(self): wxInitAllImageHandlers() | defOnInit(self):wxInitAllImageHandlers() | 29,813 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 29,814 |
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... | 29,815 |
def getSimpleRunnerSrc(self): return '' | def getSimpleRunnerSrc(self): return '' | 29,816 |
\tdef GetPrev(self): | \tdef GetPrev(self): | 29,817 |
def getSimpleRunnerSrc(self): return '' | def getSimpleRunnerSrc(self): return '' | 29,818 |
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') pyIntpPath = Preferences.getPythonInte... | 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. if hasattr(sys, 'frozen'): script_fn = os.path.join(os.path.dirname(sys.executable), 'Debugger', 'ChildProcessServerStar... | 29,819 |
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') pyIntpPath = Preferences.getPythonInte... | 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') pyIntpPath = Preferences.getPythonInte... | 29,820 |
def refreshCtrl(self): | def refreshCtrl(self): | 29,821 |
def refreshCtrl(self): | def refreshCtrl(self): | 29,822 |
def refreshCtrl(self): | def refreshCtrl(self): | 29,823 |
def refreshCtrl(self): | defrefreshCtrl(self): | 29,824 |
def OnControlSelect(self, event): """ Select parent of proxy container or create new control, update page reference to it and resize new ctrl to fill proxy container """ dsgn = self.designer new = dsgn.compPal.selection if self.ctrl: dsgn.selectControlByPos(self.ctrl, event.GetPosition(), event.ShiftDown()) else: dsgn.... | def OnControlSelect(self, event): """ Select parent of proxy container or create new control, update page reference to it and resize new ctrl to fill proxy container """ dsgn = self.designer new = dsgn.compPal.selection if self.ctrl: dsgn.selectControlByPos(self.ctrl, event.GetPosition(), event.ShiftDown()) else: dsgn.... | 29,825 |
def showImage(self, filename, node = None): if node is not None: fn = tempfile.mktemp(os.path.splitext(node.name)[-1]) open(fn, 'wb').write(node.load()) else: fn = filename | def showImage(self, filename, node = None): if node is not None: fn = tempfile.mktemp(os.path.splitext(node.name)[-1]) open(fn, 'wb').write(node.load()) else: fn = filename | 29,826 |
def pasteFileSysFolder(self, folderpath, nodepath, ftpConn): ftpConn.add_folder(os.path.basename(folderpath), nodepath) files = os.listdir(folderpath) folder = os.path.basename(folderpath) newNodepath = nodepath+'/'+folder for file in files: file = os.path.join(folderpath, file) if os.path.isdir(file): self.pasteFileSy... | def pasteFileSysFolder(self, folderpath, nodepath, ftpConn): ftpConn.add_folder(os.path.basename(folderpath), nodepath) files = os.listdir(folderpath) folder = os.path.basename(folderpath) newNodepath = nodepath+'/'+folder for file in files: file = os.path.join(folderpath, file) if os.path.isdir(file): self.pasteFileSy... | 29,827 |
def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] x['keyword'] = self.func.func_code.co_varnames[n+1] elif self.func.func_code.co_flags & self.POS_LIST: x['positional'] = self.fun... | def special_args(self): n = self.func.func_code.co_argcount x = {} # # # if self.func.func_code.co_flags & (self.POS_LIST|self.KEY_DICT): x['positional'] = self.func.func_code.co_varnames[n] try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] el... | 29,828 |
def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | 29,829 |
def bottomWindowIsOpen(self): return self.GetSashPosition() != self.GetClientSize().y - self.GetSashSize() | def bottomWindowIsOpen(self): return self.GetSashPosition() != self.GetClientSize().y - self.GetSashSize() | 29,830 |
def toPyPath(filename): return os.path.join(pyPath, filename) | def toPyPath(filename): return os.path.join(pyPath, filename) | 29,831 |
def toPyPath(filename): return os.path.join(pyPath, filename) | deftoPyPath(filename):returnos.path.join(pyPath,filename) | 29,832 |
def toPyPath(filename): return os.path.join(pyPath, filename) | def toPyPath(filename): return os.path.join(pyPath, filename) | 29,833 |
def _init_coll_pages_Pages(self, parent): | def _init_coll_pages_Pages(self, parent): | 29,834 |
def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_CLASSBROWSERFRAME, name = '', parent = prnt, pos = wxPoint(475, 238), size = wxSize(299, 497), style = wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title = 'wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(se... | def _init_ctrls(self, prnt): wxFrame.__init__(self, id=wxID_CLASSBROWSERFRAME, name='', parent=prnt, pos=wxPoint(475, 238), size=wxSize(299, 497), style=wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title='wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(self, self.OnCl... | 29,835 |
def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_CLASSBROWSERFRAME, name = '', parent = prnt, pos = wxPoint(475, 238), size = wxSize(299, 497), style = wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title = 'wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(se... | def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_CLASSBROWSERFRAME, name = '', parent = prnt, pos = wxPoint(475, 238), size = wxSize(299, 497), style = wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title = 'wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(se... | 29,836 |
def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_CLASSBROWSERFRAME, name = '', parent = prnt, pos = wxPoint(475, 238), size = wxSize(299, 497), style = wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title = 'wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(se... | def _init_ctrls(self, prnt): wxFrame.__init__(self, id = wxID_CLASSBROWSERFRAME, name = '', parent = prnt, pos = wxPoint(475, 238), size = wxSize(299, 497), style = wxDEFAULT_FRAME_STYLE | Preferences.childFrameStyle, title = 'wxPython Class Browser') self._init_utils() self.SetClientSize(wxSize(291, 470)) EVT_CLOSE(se... | 29,837 |
def __init__(self, parent): self._init_ctrls(parent) | def __init__(self, parent): self._init_ctrls(parent) | 29,838 |
def __init__(self, parent): self._init_ctrls(parent) | def __init__(self, parent): self._init_ctrls(parent) | 29,839 |
def __init__(self, parent): self._init_ctrls(parent) | def __init__(self, parent): self._init_ctrls(parent) | 29,840 |
def __init__(self, parent): self._init_ctrls(parent) | def __init__(self, parent): self._init_ctrls(parent) | 29,841 |
def travTilBase(name, classes, root): if len(classes[name].super) == 0: if not root.has_key(name): root[name] = {} return root[name] else: c = travTilBase(classes[name].super[0].name, classes, root) if not c.has_key(name): c[name] = {} return c[name] | def travTilBase(name, classes, root): if not classes.has_key(name): if not root.has_key(name): root[name] = {} return root[name] elif len(classes[name].super) == 0: if not root.has_key(name): root[name] = {} return root[name] else: c = travTilBase(classes[name].super[0].name, classes, root) if not c.has_key(name): c[na... | 29,842 |
def travTilBase(name, classes, root): if len(classes[name].super) == 0: if not root.has_key(name): root[name] = {} return root[name] else: c = travTilBase(classes[name].super[0].name, classes, root) if not c.has_key(name): c[name] = {} return c[name] | def travTilBase(name, classes, root): if len(classes[name].super) == 0: if not root.has_key(name): root[name] = {} return root[name] else: super1 = classes[name].super[0] if type(super1) != type(''): super1 = super1.name c = travTilBase(super1, classes, root) if not c.has_key(name): c[name] = {} return c[name] | 29,843 |
def getFilenameAndLine(self, frame): """Returns the filename and line number for the frame. Invoked often. | defgetFilenameAndLine(self,frame):"""Returnsthefilenameandlinenumberfortheframe.Invokedoften. | 29,844 |
def getFilenameAndLine(self, frame): """Returns the filename and line number for the frame. Invoked often. | def getFilenameAndLine(self, frame): """Returns the filename and line number for the frame. Invoked often. | 29,845 |
def TALSourceToURL(self, source_file): if source_file.startswith('traversal:'): path = source_file[10:] if path.startswith('/'): path = path[1:] meta_type = 'Page Template' host = 'localhost:8080' # XXX XXX! return 'zopedebug://%s/%s/%s' % (host, path, meta_type) return source_file # TODO: something better | def TALSourceToURL(self, source_file, frame): if source_file.startswith('traversal:'): path = source_file[10:] if path.startswith('/'): path = path[1:] meta_type = 'Page Template' host = 'localhost:8080' # XXX XXX! return 'zopedebug://%s/%s/%s' % (host, path, meta_type) return source_file # TODO: something better | 29,846 |
def getStackInfo(self): """Returns a tuple describing the current stack. """ exc_type, exc_value, stack, frame_stack_len = ( DebugServer.getStackInfo(self)) | def getStackInfo(self): """Returns a tuple describing the current stack. """ exc_type, exc_value, stack, frame_stack_len = ( DebugServer.getStackInfo(self)) | 29,847 |
def getFrameNamespaces(self, frame): """Returns the locals and globals for a frame. """ if isATALInterpeterFrame(frame): # This is a TAL interpret() frame. Use special locals # and globals. interp = frame.f_locals.get('self') if interp is not None: local_vars = getattr(interp.engine, 'local_vars', {}) global_vars = ge... | defgetFrameNamespaces(self,frame):"""Returnsthelocalsandglobalsforaframe."""ifisATALInterpeterFrame(frame):#ThisisaTALinterpret()frame.Usespeciallocals#andglobals.interp=frame.f_locals.get('self')ifinterpisnotNone:local_vars=getattr(interp.engine,'local_vars',{})global_vars=getattr(interp.engine,'global_vars',{})return... | 29,848 |
obj_def = '[A-Za-z_][A-Za-z0-9_.]*' | obj_def = '[A-Za-z_][A-Za-z0-9_.]*' | 29,849 |
def addMethod(self, class_name, method_name, method_params, method_body, to_bottom = 1): new_length = len(method_body) + 2 if not method_body: return a_class = self.classes[class_name] if method_name in a_class.method_order: raise 'Method exists' | def addMethod(self, class_name, method_name, method_params, method_body, to_bottom = 1): new_length = len(method_body) + 2 if not method_body: return a_class = self.classes[class_name] if method_name in a_class.method_order: raise 'Method exists' | 29,850 |
def getObject(self, eventObject): return self.objectDict[self.stripThis(eventObject.GetEventObject())] | def getObject(self, eventObject): return self.objectDict[self.stripThis(eventObject.GetEventObject())] | 29,851 |
def refreshCtrl(self): self.DeleteAllItems() | def refreshCtrl(self): self.DeleteAllItems() | 29,852 |
def refreshCtrl(self): self.DeleteAllItems() | def refreshCtrl(self): self.DeleteAllItems() | 29,853 |
def refreshCtrl(self): self.DeleteAllItems() | def refreshCtrl(self): self.DeleteAllItems() | 29,854 |
def refreshCtrl(self): self.DeleteAllItems() | def refreshCtrl(self): self.DeleteAllItems() | 29,855 |
def destroy(self): self.menu.Destroy() from Explorers import Explorer Explorer.PackageFolderList.Destroy() | def destroy(self): self.menu.Destroy() from Explorers import Explorer Explorer.PackageFolderList.Destroy() | 29,856 |
def __init__(self, parent, wId): StyledTextCtrls.wxStyledTextCtrl.__init__(self, parent, wId, style = wxCLIP_CHILDREN) StyledTextCtrls.CallTipCodeHelpSTCMix.__init__(self) StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, -1) | def __init__(self, parent, wId): StyledTextCtrls.wxStyledTextCtrl.__init__(self, parent, wId, style = wxCLIP_CHILDREN) StyledTextCtrls.CallTipCodeHelpSTCMix.__init__(self) StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, -1) | 29,857 |
def setDebugNamespace(self, ns): pass | def setDebugNamespace(self, ns): pass | 29,858 |
def pushLine(self, line): self.AddText('\n') prompt = '' try: self.stdin.clear() tmpstdout,tmpstderr,tmpstdin = sys.stdout,sys.stderr,sys.stdin sys.stdout,sys.stderr,sys.stdin = self.stdout,self.stderr,self.stdin self.lastResult = '' if self.interp.push(line): prompt = Preferences.ps2 self.stdout.fin(); self.stderr.fin... | def pushLine(self, line): self.AddText('\n') prompt = '' try: self.stdin.clear() tmpstdout,tmpstderr,tmpstdin = sys.stdout,sys.stderr,sys.stdin sys.stdout,sys.stderr,sys.stdin = self.stdout,self.stderr,self.stdin self.lastResult = '' if self._debugger: prompt = Preferences.ps3 val = self._debugger.getVarValue(line) if ... | 29,859 |
def OnShellEnter(self, event): self.BeginUndoAction() try: | def OnShellEnter(self, event): self.BeginUndoAction() try: | 29,860 |
def getTipValue(self, word, lnNo): try: obj = eval(word, self.interp.locals) except: docs = '' else: # we want to reroute wxPython objects to their doc strings # if they are defined docs = '' if hasattr(obj, '__doc__') and obj.__doc__: wxNS = Utils.getEntireWxNamespace() if type(obj) is types.ClassType: if wxNS.has_key... | def getTipValue(self, word, lnNo): try: obj = eval(word, self.interp.locals) except: docs = '' else: # we want to reroute wxPython objects to their doc strings # if they are defined docs = '' if hasattr(obj, '__doc__') and obj.__doc__: wxNS = Utils.getEntireWxNamespace() if type(obj) is types.ClassType: if wxNS.has_key... | 29,861 |
def OnShellHome(self, event): pos = self.GetCurrentPos() lnNo = self.GetCurrentLine() lnStPs = self.PositionFromLine(lnNo) line = self.GetCurLine()[0] if len(line) >=4 and line[:4] in (Preferences.ps1, Preferences.ps2): self.SetCurrentPos(lnStPs+4) self.SetAnchor(lnStPs+4) else: self.SetCurrentPos(lnStPs) self.SetAnch... | def OnShellHome(self, event): lnNo = self.GetCurrentLine() lnStPs = self.PositionFromLine(lnNo) line = self.GetCurLine()[0] if len(line) >=4 and line[:4] in (Preferences.ps1, Preferences.ps2): self.SetCurrentPos(lnStPs+4) self.SetAnchor(lnStPs+4) else: self.SetCurrentPos(lnStPs) self.SetAnchor(lnStPs) | 29,862 |
def write(self, s): self.output.AppendText(s) if echo: sys.__stderr__.write(s) | def write(self, s): self.output.AppendText(s) if echo: sys.__stderr__.write(s) | 29,863 |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 29,864 |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 29,865 |
def OnStreamTimer(self, event=None): if self.stream_timer: self.updateOutputWindow() | def OnStreamTimer(self, event=None): if self.stream_timer: self.updateOutputWindow() | 29,866 |
def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | 29,867 |
def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | defelse: if self.serverClientPaths: normFilepath = os.path.normcase(filepath) for serverPath, clientPath in self.serverClientPaths: normClientPath = os.path.normcase(clientPath) if normFilepath.startswith(normClientPath): return serverPath+normFilepath[len(normClientPath):] return filepath clientFNToServerFN(self,els... | 29,868 |
def serverFNToClientFN(self, filename): """Converts a filename on the server to a filename on the client. | def serverFNToClientFN(self, filename): """Converts a filename on the server to a filename on the client. | 29,869 |
def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data) | def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data) | 29,870 |
def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data) | def receiveDebuggerStatus(self, info): # Get stdout and stderr if available. errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) #self.appendToOutputWindow(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) #self.appendToOutputWindow(data) | 29,871 |
def enableTools(self, stepping, running): for wid, enabled in ((self.runId, stepping), (self.runFullSpdId, stepping), (self.stepId, stepping), (self.overId, stepping), (self.outId, stepping), (self.pauseId, not stepping), (self.stopId, running), (self.debugBrowseId, running), (self.shellNamespaceId, running)): self.too... | def enableTools(self, stepping, running): for wid, enabled in ((self.runId, stepping), (self.runFullSpdId, stepping), (self.stepId, stepping), (self.overId, stepping), (self.outId, stepping), (self.pauseId, not stepping), (self.stopId, running), (self.debugBrowseId, running), (self.shellNamespaceId, running)): self.too... | 29,872 |
def _init_coll_pages_Pages(self, parent): # generated method, don't edit | def _init_coll_pages_Pages(self, parent): # generated method, don't edit | 29,873 |
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor=None, options=None, names=None, ownerPropEdit=None): | def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor=None, options=None, names=None, ownerPropEdit=None): | 29,874 |
def AddPage(self, pPage, strText, bSelect=false, imageId=-1): wxNotebook.AddPage(self, pPage, strText) self.pages[strText] = pPage | def AddPage(self, pPage, strText, bSelect=false, imageId=-1): wxNotebook.AddPage(self, pPage, strText) self.pages[strText] = pPage | 29,875 |
def destroy(self): print 'DESTROY InspectableObjectCollectionView', self.__class__.__name__ del self.controllerView del self.inspector for objval in self.objects.values(): objval[0].destroy() for coll in self.collEditors.values(): coll.destroy() del self.collEditors del self.objects del self.senderMapper EditorViews.Ed... | def destroy(self): print 'DESTROY InspectableObjectCollectionView', self.__class__.__name__ del self.controllerView del self.inspector for objval in self.objects.values(): objval[0].destroy() for coll in self.collEditors.values(): coll.destroy() del self.collEditors del self.objects del self.senderMapper EditorViews.Ed... | 29,876 |
def organiseCollection(self): # deprc """ Restructures an ObjectCollection into propery and event dicts keyed on the control name. """ | def organiseCollection(self): # deprc """ Restructures an ObjectCollection into propery and event dicts keyed on the control name. """ | 29,877 |
def applyDepsForCtrl(self, ctrlName, depLinks): if depLinks.has_key(ctrlName): for prop in depLinks[ctrlName]: ctrl = self.objects[prop.comp_name][1] if ctrlName == '': value = self else: ord, objs = self.model.allObjects() if objs.has_key(ctrlName): value = objs[ctrlName][1] else: continue RTTI.getFunction(ctrl, prop... | def applyDepsForCtrl(self, ctrlName, depLinks): if depLinks.has_key(ctrlName): for prop in depLinks[ctrlName]: ctrl = self.objects[prop.comp_name][1] if ctrlName == '': value = self else: ord, objs = self.model.allObjects() if objs.has_key(ctrlName): value = objs[ctrlName][1] else: continue RTTI.getFunction(ctrl, prop... | 29,878 |
def initObjCreator(self, constrPrs): # Assumes all design time ctrls are imported in global scope ctrlClass = PaletteMapping.evalCtrl(constrPrs.class_name) ctrlCompnClass = PaletteMapping.compInfo[ctrlClass][1] ctrlName = self.loadControl(ctrlClass, ctrlCompnClass, constrPrs.comp_name, constrPrs.params) ctrlCompn = sel... | def initObjCreator(self, constrPrs): # Assumes all design time ctrls are imported in global scope ctrlClass = PaletteMapping.evalCtrl(constrPrs.class_name) ctrlCompnClass = PaletteMapping.compInfo[ctrlClass][1] ctrlName = self.loadControl(ctrlClass, ctrlCompnClass, constrPrs.comp_name, constrPrs.params) ctrlCompn = sel... | 29,879 |
def addDepLink(self, prop, name, dependents, depLinks): if not dependents.has_key(name): dependents[name] = [] dependents[name].append(prop) | def addDepLink(self, prop, name, dependents, depLinks): if not dependents.has_key(name): dependents[name] = [] dependents[name].append(prop) | 29,880 |
def initObjProps(self, props, name, creator, dependents, depLinks): """ Initialise property list by evaluating 1st parameter and calling prop's setter with it. Also associate companion name with prop parse objs """ if props.has_key(name): comp = self.objects[name][0] ctrl = self.objects[name][1] # initia... | def initObjProps(self, props, name, creator, dependents, depLinks): """ Initialise property list by evaluating 1st parameter and calling prop's setter with it. Also associate companion name with prop parse objs """ if props.has_key(name): comp, ctrl = self.objects[name][0:2] # initialise live component's... | 29,881 |
def initObjProps(self, props, name, creator, dependents, depLinks): """ Initialise property list by evaluating 1st parameter and calling prop's setter with it. Also associate companion name with prop parse objs """ if props.has_key(name): comp = self.objects[name][0] ctrl = self.objects[name][1] # initia... | def initObjProps(self, props, name, creator, dependents, depLinks): """ Initialise property list by evaluating 1st parameter and calling prop's setter with it. Also associate companion name with prop parse objs """ if props.has_key(name): comp = self.objects[name][0] ctrl = self.objects[name][1] # initia... | 29,882 |
def initObjColls(self, collInits, name, creator, dependents = {}): """ Initialise collection properties by creating a collection view for it and applying it. Also associate companion name with prop parse objs """ | def def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) initObjColls(self, def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) collInits, def initObjEvts(self, events, name, creator): if e... | 29,883 |
def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) | def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) | 29,884 |
def saveEvts(self, compn, newBody): """ For every event definition not defined in source add an empty method to the bottom of the class """ for evt in compn.textEventList: if evt.trigger_meth != '(delete)': newBody.append(bodyIndent + evt.asText()) if not self.model.module.classes[\ self.model.main].methods.has_key(ev... | def saveEvts(self, compn, newBody): """ For every event definition not defined in source add an empty method to the bottom of the class """ for evt in compn.textEventList: if evt.trigger_meth != '(delete)': newBody.append(bodyIndent + evt.asText()) if not self.model.module.classes[\ self.model.main].methods.has_key(ev... | 29,885 |
def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | 29,886 |
def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | 29,887 |
def addObject(self, ctrlName, companion, designTimeCtrl, parentName = None): self.objects[ctrlName] = [companion, designTimeCtrl] if parentName is not None: self.objects[ctrlName].append(parentName) self.objectOrder.append(ctrlName) | def addObject(self, ctrlName, companion, designTimeCtrl, parentName = None): self.objects[ctrlName] = [companion, designTimeCtrl] if parentName is not None: self.objects[ctrlName].append(parentName) self.objectOrder.append(ctrlName) | 29,888 |
def newObjName(self , className): """ Return a name for a control unique in the scope of the model. """ | def newObjName(self , className): """ Return a name for a control unique in the scope of the model. """ | 29,889 |
def deleteCtrl(self, name, parentRef = None): self.model.objectCollections[self.collectionMethod].deleteCtrl(name) del self.objectOrder[self.objectOrder.index(name)] del self.objects[name] for ctrlName, propName in self.collEditors.keys()[:]: if ctrlName == name: | def deleteCtrl(self, name, parentRef = None): self.model.objectCollections[self.collectionMethod].deleteCtrl(name) del self.objectOrder[self.objectOrder.index(name)] del self.objects[name] for ctrlName, propName in self.collEditors.keys()[:]: if ctrlName == name: | 29,890 |
def __init__(self, parent, inspector, model, compPal, companionClass, dataView): args = self.setupArgs(model.main, model.mainConstr.params, ['parent', 'id'], parent, companionClass) wxFrame.__init__(self, parent, -1, args['title'], args['pos'], args['size'])#, args['style'], args['name']) InspectableObjectCollectionVie... | defself.multiSelection = [] __init__(self,self.multiSelection = [] parent,self.multiSelection = [] inspector,self.multiSelection = [] model,self.multiSelection = [] compPal,self.multiSelection = [] companionClass,self.multiSelection = [] dataView):self.multiSelection = [] argsself.multiSelection = [] =self.mul... | 29,891 |
def __init__(self, parent, inspector, model, compPal, companionClass, dataView): args = self.setupArgs(model.main, model.mainConstr.params, ['parent', 'id'], parent, companionClass) wxFrame.__init__(self, parent, -1, args['title'], args['pos'], args['size'])#, args['style'], args['name']) InspectableObjectCollectionVie... | defEVT_MENU(self, wxID_EDITALIGN, self.OnAlignSelected) EVT_MENU(self, wxID_EDITSIZE, self.OnSizeSelected) EVT_MENU(self, wxID_CTRLPARENT, self.OnSelectParent) EVT_MENU(self, wxID_EDITCUT, self.OnCutSelected) EVT_MENU(self, wxID_EDITCOPY, self.OnCopySelected) EVT_MENU(self, wxID_EDITPASTE, self.OnPasteSelected) __init_... | 29,892 |
def __init__(self, parent, inspector, model, compPal, companionClass, dataView): args = self.setupArgs(model.main, model.mainConstr.params, ['parent', 'id'], parent, companionClass) wxFrame.__init__(self, parent, -1, args['title'], args['pos'], args['size'])#, args['style'], args['name']) InspectableObjectCollectionVie... | def __init__(self, parent, inspector, model, compPal, companionClass, dataView): args = self.setupArgs(model.main, model.mainConstr.params, ['parent', 'id'], parent, companionClass) wxFrame.__init__(self, parent, -1, args['title'], args['pos'], args['size'])#, args['style'], args['name']) InspectableObjectCollectionVie... | 29,893 |
def refreshCtrl(self): if self.destroying: return | def refreshCtrl(self): if self.destroying: return | 29,894 |
def refreshCtrl(self): if self.destroying: return | def refreshCtrl(self): if self.destroying: return | 29,895 |
def refreshCtrl(self): if self.destroying: return | def refreshCtrl(self): if self.destroying: return | 29,896 |
def refreshCtrl(self): if self.destroying: return | def refreshCtrl(self): if self.destroying: return | 29,897 |
def initSelection(self): self.selection = SelectionGroup(self, self.senderMapper, self.inspector, self) | def initSelection(self): self.selection = SelectionGroup(self, self.senderMapper, self.inspector, self) | 29,898 |
def getAllObjects(self, theClass): results = InspectableObjectCollectionView.getAllObjects(self) for objName in self.dataView.objects.keys(): if objName: results['self.'+objName] = self.dataView.objects[objName][1] else: results['self'] = self.dataView.objects[objName][1] return results | def getAllObjects(self): results = InspectableObjectCollectionView.getAllObjects(self) for objName in self.dataView.objects.keys(): if objName: results['self.'+objName] = self.dataView.objects[objName][1] else: results['self'] = self.dataView.objects[objName][1] return results | 29,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.