rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
>>> def foo(x, y, z=-1.0, *args, **kw): | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py | ||
syntax are not considered. | syntax are not considered. | >>> def foo(x, y, z=-1.0, *args, **kw): | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py |
cases this should look pretty close. | cases this should look pretty close. | >>> def foo(x, y, z=-1.0, *args, **kw): | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py |
>>> def foo(x, y, z=-1.0, *args, **kw): | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py | ||
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... | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py | ||
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'] | 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'] | 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... | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py |
return f.__name, lambda: None | 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 | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py |
print "signature:", | print "signature:", | def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | 21a68ea99cd4c7a3796743445f2f9d2a787ba562 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/21a68ea99cd4c7a3796743445f2f9d2a787ba562/Signature.py |
('wxWinButton.png', 'Images/Shared/wxWinButton.png', wxBITMAP_TYPE_PNG)]: | ('wxWinButton.png', 'Images/Shared/wxWinButton.png', wxBITMAP_TYPE_PNG), ('Debian.png', 'Images/Shared/Debian.png', wxBITMAP_TYPE_PNG), ('Gentoo.png', 'Images/Shared/Gentoo.png', wxBITMAP_TYPE_PNG)]: | 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_... | 1246523e41e4434a02e1d3cb05537d4d6a46ecf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1246523e41e4434a02e1d3cb05537d4d6a46ecf2/About.py |
'memory:wxWinButton.png')) | 'memory:wxWinButton.png', 'memory:Debian.png', 'memory:Gentoo.png',)) | 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.... | 1246523e41e4434a02e1d3cb05537d4d6a46ecf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1246523e41e4434a02e1d3cb05537d4d6a46ecf2/About.py |
if sys and len(sys.modules) >= self.moduleTotal: | if self and sys and len(sys.modules) >= self.moduleTotal: | def monitorModuleCount(self): self._live = true lastCnt = 0 if sys and len(sys.modules) >= self.moduleTotal: wx.wxPostEvent(self, ModCntUpdateEvent(self.moduleTotal, 'importing')) else: while self and self._live and sys and len(sys.modules) < self.moduleTotal: mc = len(sys.modules) if mc > lastCnt: lastCnt = mc wx.wxPo... | 1246523e41e4434a02e1d3cb05537d4d6a46ecf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1246523e41e4434a02e1d3cb05537d4d6a46ecf2/About.py |
def OnInit(self): wxInitAllImageHandlers() | 9faecc1999cae5799f3a66417676af01e6c26c2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9faecc1999cae5799f3a66417676af01e6c26c2f/Boa.py | ||
def OnInit(self): wxInitAllImageHandlers() | 9faecc1999cae5799f3a66417676af01e6c26c2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9faecc1999cae5799f3a66417676af01e6c26c2f/Boa.py | ||
def OnInit(self): wxInitAllImageHandlers() | 9faecc1999cae5799f3a66417676af01e6c26c2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9faecc1999cae5799f3a66417676af01e6c26c2f/Boa.py | ||
mod = editor.openOrGotoModule(startupModules[0]) | mod = editor.openOrGotoModule(startupModules[0])[0] | def OnInit(self): wxInitAllImageHandlers() | 9faecc1999cae5799f3a66417676af01e6c26c2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9faecc1999cae5799f3a66417676af01e6c26c2f/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... | 9faecc1999cae5799f3a66417676af01e6c26c2f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9faecc1999cae5799f3a66417676af01e6c26c2f/Boa.py | ||
defaultName = 'wx.Wizard' | defaultName = 'wx.wizard.Wizard' | def getSimpleRunnerSrc(self): return '' | b69356508054fc9760f797ebed8c2603130041bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b69356508054fc9760f797ebed8c2603130041bb/wxPythonEditorModels.py |
defaultName = 'wx.PyWizardPage' | defaultName = 'wx.wizard.PyWizardPage' | \tdef GetPrev(self): | b69356508054fc9760f797ebed8c2603130041bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b69356508054fc9760f797ebed8c2603130041bb/wxPythonEditorModels.py |
defaultName = 'wx.WizardPageSimple' | defaultName = 'wx.wizard.WizardPageSimple' | def getSimpleRunnerSrc(self): return '' | b69356508054fc9760f797ebed8c2603130041bb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b69356508054fc9760f797ebed8c2603130041bb/wxPythonEditorModels.py |
script_fn = os.path.join(os.path.dirname(__file__), | if hasattr(sys, 'frozen'): script_fn = os.path.join(os.path.dirname(sys.executable), 'Debugger', 'ChildProcessServerStart.py') else: script_fn = os.path.join(os.path.dirname(__file__), | 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... | d02f9be4e2a9fdafc3cdc0f41c7b8a60933aae05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d02f9be4e2a9fdafc3cdc0f41c7b8a60933aae05/ChildProcessClient.py |
fn = os.path.join(os.path.dirname(__file__), 'DebugTracebacks.txt') | if hasattr(sys, 'frozen'): fn = os.path.join(os.path.dirname(sys.executable), 'DebugTracebacks.txt') else: fn = os.path.join(os.path.dirname(__file__), 'DebugTracebacks.txt') | 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... | d02f9be4e2a9fdafc3cdc0f41c7b8a60933aae05 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d02f9be4e2a9fdafc3cdc0f41c7b8a60933aae05/ChildProcessClient.py |
def refreshCtrl(self): | a5c854de6078df61ba4cbc8f3b62d0d6a841373d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a5c854de6078df61ba4cbc8f3b62d0d6a841373d/SourceViews.py | ||
def refreshCtrl(self): | a5c854de6078df61ba4cbc8f3b62d0d6a841373d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a5c854de6078df61ba4cbc8f3b62d0d6a841373d/SourceViews.py | ||
resetUndo = not self.CanUndo() | resetUndo = not self.CanUndo() and not curData | def refreshCtrl(self): | a5c854de6078df61ba4cbc8f3b62d0d6a841373d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a5c854de6078df61ba4cbc8f3b62d0d6a841373d/SourceViews.py |
def refreshCtrl(self): | a5c854de6078df61ba4cbc8f3b62d0d6a841373d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a5c854de6078df61ba4cbc8f3b62d0d6a841373d/SourceViews.py | ||
dsgn.ctrlEvtHandler.OnControlSelect(event, self.GetParent()) | dsgn.ctrlEvtHandler.OnControlSelect(event) | 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.... | 9093e0cbeaff14687f3a647d1131e3abf57c4c9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/9093e0cbeaff14687f3a647d1131e3abf57c4c9a/Companions.py |
bmp = wxImage(fn, imgs[string.lower(os.path.splitext(fn)[-1])]).ConvertToBitmap() | bmp = wxImage(fn, imgs[os.path.splitext(fn)[-1].lower()]).ConvertToBitmap() | 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 | de543afd9717a28bab1939b38367a3584fb270ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/de543afd9717a28bab1939b38367a3584fb270ee/ImageViewer.py |
self.pasteFileSysFolder(file, newNodepath, zopeConn) | self.pasteFileSysFolder(file, newNodepath, ftpConn) | 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... | cc44f2f2c6937781d41e5bb554a8c38d6eb049c9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/cc44f2f2c6937781d41e5bb554a8c38d6eb049c9/FTPExplorer.py |
x['keyword'] = self.func.func_code.co_varnames[n+1] | try: x['keyword'] = self.func.func_code.co_varnames[n+1] except IndexError: x['keyword'] = x['positional'] del x['positional'] | 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... | e544ab98c78d79f1a90826aa355fcfd469614004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e544ab98c78d79f1a90826aa355fcfd469614004/Signature.py |
print "signature:", f | print "signature:", | def foo(x, y, z=-1.0, *args, **kw): return (x+y)**z | e544ab98c78d79f1a90826aa355fcfd469614004 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e544ab98c78d79f1a90826aa355fcfd469614004/Signature.py |
return self.GetSashPosition() != self.GetClientSize().y - self.GetSashSize() | return self.GetSashPosition()+1 != self.GetClientSize().y - self.GetSashSize() | def bottomWindowIsOpen(self): return self.GetSashPosition() != self.GetClientSize().y - self.GetSashSize() | d44580e452b6659e0e35a79598160ba49e95d9bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d44580e452b6659e0e35a79598160ba49e95d9bc/Utils.py |
def toPyPath(filename): return os.path.join(pyPath, filename) | 5943eab6bfa050de07a5ccea55b635e1dfe9b73b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5943eab6bfa050de07a5ccea55b635e1dfe9b73b/Preferences.py | ||
def toPyPath(filename): return os.path.join(pyPath, filename) | 5943eab6bfa050de07a5ccea55b635e1dfe9b73b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5943eab6bfa050de07a5ccea55b635e1dfe9b73b/Preferences.py | ||
print "Created directory: %s" % rcPath | print 'Created directory: %s' % rcPath | def toPyPath(filename): return os.path.join(pyPath, filename) | 5943eab6bfa050de07a5ccea55b635e1dfe9b73b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5943eab6bfa050de07a5ccea55b635e1dfe9b73b/Preferences.py |
parent.AddPage(bSelect = true, imageId = -1, pPage = self.hierarchy, strText = 'Hierarchy') parent.AddPage(bSelect = false, imageId = -1, pPage = self.tree, strText = 'Modules') | parent.AddPage(bSelect=true, imageId=-1, pPage=self.hierarchy, strText='Hierarchy') parent.AddPage(bSelect=false, imageId=-1, pPage=self.tree, strText='Modules') | def _init_coll_pages_Pages(self, parent): | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
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') | 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') | 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... | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
self.statusBar = wxStatusBar(id = wxID_CLASSBROWSERFRAMESTATUSBAR, name = 'statusBar', parent = self, style = wxST_SIZEGRIP) | self.statusBar = wxStatusBar(id=wxID_CLASSBROWSERFRAMESTATUSBAR, name='statusBar', parent=self, style=wxST_SIZEGRIP) | 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... | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
self.pages = wxNotebook(id = wxID_CLASSBROWSERFRAMEPAGES, name = 'pages', parent = self, pos = wxPoint(0, 0), size = wxSize(291, 450), style = 0) self.hierarchy = wxTreeCtrl(id = wxID_CLASSBROWSERFRAMEHIERARCHY, name = 'hierarchy', parent = self.pages, pos = wxPoint(0, 0), size = wxSize(283, 424), style = wxTR_HAS_BUT... | self.pages = wxNotebook(id=wxID_CLASSBROWSERFRAMEPAGES, name='pages', parent=self, pos=wxPoint(0, 0), size=wxSize(291, 450), style=0) self.hierarchy = wxTreeCtrl(id=wxID_CLASSBROWSERFRAMEHIERARCHY, name='hierarchy', parent=self.pages, pos=wxPoint(0, 0), size=wxSize(283, 424), style=wxTR_HAS_BUTTONS, validator=wxDefaul... | 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... | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
def __init__(self, parent): self._init_ctrls(parent) | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py | ||
def __init__(self, parent): self._init_ctrls(parent) | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py | ||
def __init__(self, parent): self._init_ctrls(parent) | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py | ||
superItem = self.tree.AppendItem(suprItem, supers.name) | try: superItem = self.tree.AppendItem(suprItem, supers.name) except AttributeError: superItem = self.tree.AppendItem(suprItem, supers) | def __init__(self, parent): self._init_ctrls(parent) | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
if len(classes[name].super) == 0: | if not classes.has_key(name): if not root.has_key(name): root[name] = {} return root[name] elif len(classes[name].super) == 0: | 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] | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
c = travTilBase(classes[name].super[0].name, classes, root) | super1 = classes[name].super[0] if type(super1) != type(''): super1 = super1.name c = travTilBase(super1, classes, root) | 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] | 90a7d6f141c705b970a2d5e9b7164b8c8de72d19 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/90a7d6f141c705b970a2d5e9b7164b8c8de72d19/ClassBrowser.py |
def getFilenameAndLine(self, frame): """Returns the filename and line number for the frame. Invoked often. | 2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d/ZopeScriptDebugServer.py | ||
return self.TALSourceToURL(source_file), ln | return self.TALSourceToURL(source_file, frame), ln | def getFilenameAndLine(self, frame): """Returns the filename and line number for the frame. Invoked often. | 2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d/ZopeScriptDebugServer.py |
def TALSourceToURL(self, source_file): | def TALSourceToURL(self, source_file, frame): | 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 | 2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d/ZopeScriptDebugServer.py |
saved_source = caller.f_locals.get('saved_source') position = caller.f_locals.get('saved_position') | saved_source = caller.f_locals.get('prev_source') position = 0 | def getStackInfo(self): """Returns a tuple describing the current stack. """ exc_type, exc_value, stack, frame_stack_len = ( DebugServer.getStackInfo(self)) | 2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d/ZopeScriptDebugServer.py |
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... | 2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/2de8b221c4cd2305a9e71370e89f7ed7c48bbe8d/ZopeScriptDebugServer.py | ||
is_import = re.compile('^[ \t]*import[ \t]*(?P<imp>[^ | is_import = re.compile('^[ \t]*import[ \t]+(?P<imp>[^ | obj_def = '[A-Za-z_][A-Za-z0-9_.]*' | 429e4a8df8863aa5ec7c9cf159385ab8418d2992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/429e4a8df8863aa5ec7c9cf159385ab8418d2992/moduleparse.py |
raise 'Method exists' | raise Exception, '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' | 429e4a8df8863aa5ec7c9cf159385ab8418d2992 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/429e4a8df8863aa5ec7c9cf159385ab8418d2992/moduleparse.py |
return self.objectDict[self.stripThis(eventObject.GetEventObject())] | evtObj = eventObject.GetEventObject() if evtObj: return self.objectDict[self.stripThis(eventObject.GetEventObject())] else: print 'no evt obj' | def getObject(self, eventObject): return self.objectDict[self.stripThis(eventObject.GetEventObject())] | 1373f4062e936ffffb6209cb1d31719219851fd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1373f4062e936ffffb6209cb1d31719219851fd0/sender.py |
className = aclass | className = ctrl.class_name | def refreshCtrl(self): self.DeleteAllItems() | 0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py |
if len(module.classes[aclass].super): base = module.classes[aclass].super[0] | if len(module.classes[className].super): base = module.classes[className].super[0] | def refreshCtrl(self): self.DeleteAllItems() | 0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py |
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(aclass, base, gray = true)) | idx1 = self.il.Add(PaletteMapping.bitmapForComponent(className, base, gray = true)) | def refreshCtrl(self): self.DeleteAllItems() | 0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py |
idx1 = self.il.Add(PaletteMapping.bitmapForComponent(aclass, 'Component')) | idx1 = self.il.Add(PaletteMapping.bitmapForComponent(className, 'Component')) | def refreshCtrl(self): self.DeleteAllItems() | 0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/0bf8bf1d4d573fbfcb1bd85b782be2f7345788b3/DataView.py |
Explorer.PackageFolderList.Destroy() | Explorer.PackageFolderList.destroy(self) | def destroy(self): self.menu.Destroy() from Explorers import Explorer Explorer.PackageFolderList.Destroy() | b72eb86d8db2d5d0b451700253f83c96da582e87 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/b72eb86d8db2d5d0b451700253f83c96da582e87/FileDlg.py |
StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, -1) | StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, ()) | def __init__(self, parent, wId): StyledTextCtrls.wxStyledTextCtrl.__init__(self, parent, wId, style = wxCLIP_CHILDREN) StyledTextCtrls.CallTipCodeHelpSTCMix.__init__(self) StyledTextCtrls.PythonStyledTextCtrlMix.__init__(self, wId, -1) | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py |
def setDebugNamespace(self, ns): pass | def setDebugNamespace(self, ns): pass | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py | |
if self.interp.push(line): | if self._debugger: prompt = Preferences.ps3 val = self._debugger.getVarValue(line) if val is not None: print val return false elif self.interp.push(line): | 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... | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py |
ll = self.GetCurrentLine() | def OnShellEnter(self, event): self.BeginUndoAction() try: | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py | |
except ValueError, TypeError: | except (ValueError, TypeError): | 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... | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py |
pos = self.GetCurrentPos() | 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... | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py | |
def write(self, s): self.output.AppendText(s) if echo: sys.__stderr__.write(s) | 5ad21a150f4933abf1d43fc72ecf4bb2d6645cee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5ad21a150f4933abf1d43fc72ecf4bb2d6645cee/ShellEditor.py | ||
'Images/Debug/Debug.png', 'Debug/Continue - %s\nRuns in debugger, ' 'stops at breaks and exceptions'%keyDefs['Debug'][2], self.OnDebug) | 'Images/Debug/Debug.png', 'Debug/Continue - %s'%keyDefs['Debug'][2], self.OnDebug) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
'Images/Debug/DebugFullSpeed.png', 'Debug/Continue full speed\nStops ' 'only at hard (code) breaks and exceptions', self.OnDebugFullSpeed) | 'Images/Debug/DebugFullSpeed.png', 'Debug/Continue full speed', self.OnDebugFullSpeed) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
self.updateOutputWindow() def updateOutputWindow(self): | self.updateErrOutWindow() def updateErrOutWindow(self): | def OnStreamTimer(self, event=None): if self.stream_timer: self.updateOutputWindow() | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
if prot == 'file': return filepath elif prot == 'zope': | if prot == 'zope': | def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
else: 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 | def clientFNToServerFN(self, filename): """Converts a filename on the client to a filename on the server. | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py | |
def serverFNToClientFN(self, filename): """Converts a filename on the server to a filename on the client. | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py | ||
errout = self.editor.erroutFrm data = info.get('stdout', None) if data: errout.appendToOutput(data) data = info.get('stderr', None) if data: errout.appendToErrors(data) | self.updateErrOutWindow() | 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) | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
self.updateOutputWindow() | self.updateErrOutWindow() | 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) | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
self.toolbar.EnableTool(wid, enabled) | if wid != -1: self.toolbar.EnableTool(wid, enabled) | 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... | 1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/1fd76040ee233c5fbebb3ef0791e3ff3b0a55a94/Debugger.py |
parent.AddPage(bSelect=true, imageId=-1, pPage=self.constr, strText=self.constr_name) parent.AddPage(bSelect=false, imageId=-1, pPage=self.props, strText=self.props_name) parent.AddPage(bSelect=false, imageId=-1, pPage=self.events, strText=self.events_name) | parent.AddPage(select=true, imageId=-1, page=self.constr, text=self.constr_name) parent.AddPage(select=false, imageId=-1, page=self.props, text=self.props_name) parent.AddPage(select=false, imageId=-1, page=self.events, text=self.events_name) | def _init_coll_pages_Pages(self, parent): # generated method, don't edit | 32feb46fedef87f264edb49af2c04985e359442b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/32feb46fedef87f264edb49af2c04985e359442b/Inspector.py |
wxSize(12, 14)) | wxSize(13, 14)) | def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor=None, options=None, names=None, ownerPropEdit=None): | 32feb46fedef87f264edb49af2c04985e359442b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/32feb46fedef87f264edb49af2c04985e359442b/Inspector.py |
def AddPage(self, pPage, strText, bSelect=false, imageId=-1): wxNotebook.AddPage(self, pPage, strText) self.pages[strText] = pPage | def AddPage(self, page, text, select=false, imageId=-1): wxNotebook.AddPage(self, page, text) self.pages[text] = page | def AddPage(self, pPage, strText, bSelect=false, imageId=-1): wxNotebook.AddPage(self, pPage, strText) self.pages[strText] = pPage | 32feb46fedef87f264edb49af2c04985e359442b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/32feb46fedef87f264edb49af2c04985e359442b/Inspector.py |
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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | ||
def organiseCollection(self): """ Restructures an ObjectCollection into propery and event dicts keyed on the control name. """ props = {} events = {} objColl = ObjectCollection() if self.model.objectCollections.has_key(self.collectionMethod): objColl = self.model.objectCollections... | def organiseCollection(self): # deprc """ Restructures an ObjectCollection into propery and event dicts keyed on the control name. """ | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
def ctrlNameFromSrc(self, link): if link == 'self': return '' else: return link[5:] | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
def addDepLink(self, prop, name, dependents, depLinks): if not dependents.has_key(name): dependents[name] = [] dependents[name].append(prop) link = self.ctrlNameFromSrc(prop.params[0]) if not depLinks.has_key(link): depLinks[link] = [] depLinks[link].append(prop) | def addDepLink(self, prop, name, dependents, depLinks): if not dependents.has_key(name): dependents[name] = [] dependents[name].append(prop) | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
comp = self.objects[name][0] ctrl = self.objects[name][1] | comp, ctrl = self.objects[name][0:2] | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def initObjColls(self, collInits, name, creator, dependents = {}): | def initObjColls(self, collInits, name, creator, dependents = None): | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) | 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 """ | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) | def checkAndAddDepLink(self, ctrlName, prop, dependentProps, deps, depLinks, definedCtrls): if prop.prop_name in dependentProps: target = Utils.ctrlNameFromSrcRef(prop.params[0]) if target not in definedCtrls: self.addDepLink(prop, ctrlName, deps, depLinks) return true return false def applyDepsForCtrl(self, ctrlName... | def initObjEvts(self, events, name, creator): if events.has_key(name): self.objects[name][0].setEvents(events[name]) | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
try: if compn.textConstr: newBody.append(bodyIndent + compn.textConstr.asText()) if compn.textConstr.comp_name == '' and \ self.collectionMethod == '_init_ctrls': newBody.append(bodyIndent + 'self._init_utils()') except: print 'no constr:', ctrlName for prop in compn.textPropList: if prop.prop_name in compn.depend... | def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
self.saveDepsForCtrl(ctrlName, depLinks, newBody) | compn.writeConstructor(newBody, self.collectionMethod) compn.writeProperties(newBody, ctrlName, definedCtrls, deps, depLinks) compn.writeCollections(newBody, collDeps) compn.writeEvents(newBody, addModuleMethod = true) compn.writeDependencies(newBody, ctrlName, depLinks) | def saveCtrls(self, definedCtrls): """ Replace current source of method in collectionMethod with values from constructors, properties and events. """ | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def newObjName(self , className): | def newObjName(self, className): | 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) | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
newName = '%s%s'%(string.lower(className[2:3]), className[3:]) while self.objects.has_key(newName + `num`): num = num + 1 return newName + `num` | if className[:2] == 'wx': newName = '%s%s'%(string.lower(className[2:3]), className[3:]) else: newName = '%s%s'%(string.lower(className[0]), className[1:]) return Utils.getValidName(self.objects.keys(), newName) | def newObjName(self , className): """ Return a name for a control unique in the scope of the model. """ | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
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: | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | ||
self.multiSelection = [] | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
EVT_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) | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | |
('ContextHelp', wxID_CTRLHELP)): | ('ContextHelp', wxID_CTRLHELP), ('Escape', wxID_CTRLPARENT)): | 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... | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def refreshCtrl(self): if self.destroying: return | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | ||
def refreshCtrl(self): if self.destroying: return | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | ||
self.selection = SelectionGroup(self, self.senderMapper, | self.selection = SingleSelectionGroup(self, self.senderMapper, | def refreshCtrl(self): if self.destroying: return | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def refreshCtrl(self): if self.destroying: return | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py | ||
self.selection = SelectionGroup(self, self.senderMapper, self.inspector, self) | self.selection = SingleSelectionGroup(self, self.senderMapper, self.inspector, self) | def initSelection(self): self.selection = SelectionGroup(self, self.senderMapper, self.inspector, self) | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
def getAllObjects(self, theClass): | def getAllObjects(self): | 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 | 929119b7ba576880ddd09a9ae89e96345b94dae4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/929119b7ba576880ddd09a9ae89e96345b94dae4/Designer.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.