rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
self.set_next(break_frame)
if frame is self.botframe: break if self.botframe is None: self.botframe = root_frame self.set_step()
def set_trace(self, call_depth=1): """Start debugging from the caller frame.
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
return self.trace_dispatch
def set_trace(self, call_depth=1): """Start debugging from the caller frame.
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
def set_break(self, filename, lineno, temporary=0, cond=None): #orig_filename = filename filename = self.canonic(filename) import linecache # Import as late as possible line = linecache.getline(filename, lineno) if not line: # XXX maybe should call linecache.checkcache() here? return 'Invalid line: %s(%s)' % (filename,...
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
self.run("execfile(fn, d)", {'fn':fn, 'd':d})
self.run("execfile(fn, d)", { 'fn':fn, 'd':d, '__debugger__': self})
def runFile(self, filename, params, autocont, add_paths): d = {'__name__': '__main__', '__doc__': 'Debugging', '__builtins__': __builtins__,}
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
def run(self, cmd, globals=None, locals=None): try: self._running = 1 try: Bdb.run(self, cmd, globals, locals) except (BdbQuit, SystemExit): pass except: # Provide post-mortem analysis. import traceback traceback.print_exc() self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.ev...
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.eventLoop()
if self._lock.acquire(0): self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.eventLoop()
def run(self, cmd, globals=None, locals=None): try: self._running = 1 try: Bdb.run(self, cmd, globals, locals) except (BdbQuit, SystemExit): pass except: # Provide post-mortem analysis. import traceback traceback.print_exc() self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.ev...
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
sys.settrace(None) self.quitting = 1 self._running = 0 self.cleanupServer() def runFunc(self, func, *args, **kw): try: self._running = 1 try: return apply(self.runcall, (func,) + args, kw) except BdbQuit: pass except: self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.eventLo...
sys.settrace(None)
def run(self, cmd, globals=None, locals=None): try: self._running = 1 try: Bdb.run(self, cmd, globals, locals) except (BdbQuit, SystemExit): pass except: # Provide post-mortem analysis. import traceback traceback.print_exc() self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_frame self.quitting = 0 self.ev...
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
def set_step_over(self): # Stop on the next line in the current frame or above. frame = self.frame if frame is not None: self.ignore_stopline = frame.f_lineno self.set_next(frame) else: raise DebugError('No current frame')
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
stack = stack[frame_stack_len + 2:] frame_stack_len = len(stack)
def getStackInfo(self): try: if self.exc_info is not None: exc_type, exc_value, exc_tb = self.exc_info try: exc_type = exc_type.__name__ except AttributeError: # Python 2.x -> ustr()? exc_type = "%s" % str(exc_type) if exc_value is not None: exc_value = str(exc_value) stack, frame_stack_len = self.get_stack( exc_tb.tb...
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
def reset(self): Bdb.reset(self) def descrframe(frame): if frame: return ('<frame:%s(%s)%s [%s]>'%(path.basename(frame.f_code.co_filename), frame.f_lineno, frame.f_code.co_name, id(frame)) ) else: return 'None' _settrace = sys.settrace def settrace_prx(func): print 'TRACE: %s set by %s'%(func, ...
def reset(self): Bdb.reset(self) #self.frame = None
012f113a464af15e6ce8b226da475a23a61f446a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/012f113a464af15e6ce8b226da475a23a61f446a/IsolatedDebugger.py
def __init__(self): wxBoxSizer.__init__(self, wxVERTICAL) self.AddSpacer(24, 24)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def renameCtrl(self, oldName, newName): UtilityDTC.renameCtrl(self, oldName, newName) self.designer.checkSizerConnectRename(oldName, newName)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def renameCtrlRefs(self, oldName, newName): UtilityDTC.renameCtrlRefs(self, oldName, newName)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def recreateSizer(self): args = self.designer.setupArgs(self.name, self.textConstr.params, self.handledConstrParams, evalDct = self.designer.model.specialAttrs) self.control = self.designTimeObject(args) self.designer.objects[self.name][1] = self.control
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def recreateSizerItems(self): for collComp in self.collections.values(): collComp.control = self.control for crt in collComp.textConstrLst: collComp.applyDesignTimeDefaults(crt.params, crt.method)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def getObjects(self): designer = self.companion.designer.controllerView windows = designer.getObjectsOfClass(wxWindowPtr) for n, w in windows.items(): if hasattr(w, '_in_sizer') or n == 'self': del windows[n] windowNames = windows.keys() windowNames.sort() res = ['None'] + windowNames if self.value != 'None': res.inser...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def getObjects(self): # build a list of nested parent sizers parent = self.companion.parentCompanion.control sizerParents = [parent] while hasattr(parent, '_sub_sizer'): parent = parent._sub_sizer sizerParents.append(parent) sizers = self.companion.designer.getObjectsOfClass(wxSizerPtr) # remove invalid sizers from th...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def getObjects(self): # build a list of nested parent sizers parent = self.companion.parentCompanion.control sizerParents = [parent] while hasattr(parent, '_sub_sizer'): parent = parent._sub_sizer sizerParents.append(parent) sizers = self.companion.designer.getObjectsOfClass(wxSizerPtr) # remove invalid sizers from th...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def getObjects(self): # build a list of nested parent sizers parent = self.companion.parentCompanion.control sizerParents = [parent] while hasattr(parent, '_sub_sizer'): parent = parent._sub_sizer sizerParents.append(parent) sizers = self.companion.designer.getObjectsOfClass(wxSizerPtr) # remove invalid sizers from th...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
'AddSpacer': ('Add spacer', '', '(None)')
'AddSpacer': ('Add spacer', '', '(None)')
def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
self.windowStyles = ['wxLEFT', 'wxRIGHT', 'wxTOP', 'wxBOTTOM', 'wxALL', 'wxSHRINK', 'wxGROW', 'wxEXPAND', 'wxSHAPED', 'wxALIGN_LEFT', 'wxALIGN_CENTER_HORIZONTAL',
self.windowStyles = ['wxLEFT', 'wxRIGHT', 'wxTOP', 'wxBOTTOM', 'wxALL', 'wxSHRINK', 'wxGROW', 'wxEXPAND', 'wxSHAPED', 'wxALIGN_LEFT', 'wxALIGN_CENTER_HORIZONTAL',
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors = {'Window': SizerWinEnumConstrPropEdit, 'Sizer': SizerEnumConstrPropEdit, 'Proportion': IntConstrPropEdit, 'Flag': SizerFlagsConstrPropEdit, 'Border': IntConstrPropEdit, 'Width': ...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
'wxALIGN_CENTER_VERTICAL', 'wxALIGN_TOP', 'wxALIGN_CENTER', 'wxADJUST_MINSIZE']
'wxALIGN_CENTER_VERTICAL', 'wxALIGN_TOP', 'wxALIGN_CENTER', 'wxADJUST_MINSIZE']
def __init__(self, name, designer, parentCompanion, ctrl): CollectionDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors = {'Window': SizerWinEnumConstrPropEdit, 'Sizer': SizerEnumConstrPropEdit, 'Proportion': IntConstrPropEdit, 'Flag': SizerFlagsConstrPropEdit, 'Border': IntConstrPropEdit, 'Width': ...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'f...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
return {0: 'None', 1: '0', 'flag': '0', 'border': '0'}
return {0: 'None', 1: '0', 'flag': '0', 'border': '0'}
def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'f...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
return {0: 'None', 1: '0', 'flag': '0', 'border': '0'}
return {0: 'None', 1: '0', 'flag': '0', 'border': '0'}
def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'f...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
return {0: '8', 1: '8', 'flag': '0', 'border': '0'}
return {0: '8', 1: '8', 'flag': '0', 'border': '0'}
def designTimeSource(self, wId, method=None): if method is None: method = self.insertionMethod if method == 'AddWindow': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSizer': return {0: 'None', 1: '0', 'flag': '0', 'border': '0'} elif method == 'AddSpacer': return {0: '8', 1: '8', 'f...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
if action == 'delete' and compn != self: compnSrcRef = Utils.srcRefFromCtrlName(compn.name) for constr in self.textConstrLst: if compnSrcRef == constr.params[0]: constr.params[0] = 'None' self.recreateSizers() return
if action == 'delete': if not isinstance(compn, CollectionDTC): compnSrcRef = Utils.srcRefFromCtrlName(compn.name) for constr in self.textConstrLst: if compnSrcRef == constr.params[0]: constr.params[0] = 'None' self.recreateSizers() return
def notification(self, compn, action): if action == 'delete' and compn != self: compnSrcRef = Utils.srcRefFromCtrlName(compn.name) for constr in self.textConstrLst: if compnSrcRef == constr.params[0]: constr.params[0] = 'None' self.recreateSizers() return
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def appendItem(self, method=None): CollectionDTC.appendItem(self, method) self.updateGUI()
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def defaultAction(self): constr = self.textConstrLst[self.index] if constr.method == 'AddWindow': if constr.params[0] != 'None': name = Utils.ctrlNameFromSrcRef(constr.params[0]) designer = self.designer.controllerView compn, ctrl = designer.objects[name][:2] designer.inspector.selectObject(compn, true) designer.Raise(...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
if method in ('AddWindow', 'AddSizer', 'Insert'):
if method in ('AddWindow', 'AddSizer', 'Insert'):
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
if method == 'Insert':
if method == 'Insert':
def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
self.control.AddSizer(BlankSizer(), proportion, defaults['flag'],
self.control.AddSizer(BlankSizer(), proportion, defaults['flag'],
def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def setWindowRefresh(self, collEditView): collEditView.refreshCtrl(1) collEditView.selectObject(self.index) if collEditView.frame: collEditView.frame.selectObject(self.index)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def persistProp(self, name, setterName, value): CollectionDTC.persistProp(self, name, setterName, value) if name in ('Width', 'Height'): self.recreateSizers() elif name in ('Flag', 'Border', 'Proportion'): if name == 'Proportion': name = 'Option' si = self.control.GetChildren()[self.index] getattr(si, 'Set'+name)(self....
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
class BoxSizerDTC(SizerDTC):
class BoxSizerDTC(SizerDTC):
def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL,
self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL,
def __init__(self, name, designer, objClass): SizerDTC.__init__(self, name, designer, objClass) self.editors['Orientation'] = EnumPropEdit self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL, 'wxHORIZONTAL': wxHORIZONTAL} self.options['Orientation'] = [wxVERTICAL, wxHORIZONTAL]
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
class GridSizerDTC(SizerDTC):
class GridSizerDTC(SizerDTC):
def designTimeSource(self): return {'orient': 'wxVERTICAL'}
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
ce = self.companion.designer.showCollectionEditor(self.companion.name,
ce = self.companion.designer.showCollectionEditor(self.companion.name,
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
'AddGrowableCol': ('Add growable column', 0, '(None)')
'AddGrowableCol': ('Add growable column', 0, '(None)')
def edit(self, event): ce = self.companion.designer.showCollectionEditor(self.companion.name, self.name, false) growableRows, growableCols = ce.companion.getGrowables() fgsCompn = ce.companion.parentCompanion numRows = self.companion.eval(fgsCompn.textConstr.params['rows']) numCols = self.companion.eval(fgsCompn.text...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
class FlexGridSizerDTC(GridSizerDTC):
class FlexGridSizerDTC(GridSizerDTC):
def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
return '\n'.join( (GridSizerDTC.writeImports(self),
return '\n'.join( (GridSizerDTC.writeImports(self),
def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') )
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') )
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def designTimeObject(self, args = None): if args is not None: self.control = apply(self.objClass, (), args) else: linkClassName = self.LinkClass.__name__[:-3] dtd = self.designTimeDefaults() linkObjs = self.designer.controllerView.getObjectsOfClass(self.LinkClass).items() if not linkObjs: raise Exception, 'No %s contro...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
dlg = wxSingleChoiceDialog(self.designer, 'Choose control',
dlg = wxSingleChoiceDialog(self.designer, 'Choose control',
def designTimeObject(self, args = None): if args is not None: self.control = apply(self.objClass, (), args) else: linkClassName = self.LinkClass.__name__[:-3] dtd = self.designTimeDefaults() linkObjs = self.designer.controllerView.getObjectsOfClass(self.LinkClass).items() if not linkObjs: raise Exception, 'No %s contro...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def designTimeObject(self, args = None): if args is not None: self.control = apply(self.objClass, (), args) else: linkClassName = self.LinkClass.__name__[:-3] dtd = self.designTimeDefaults() linkObjs = self.designer.controllerView.getObjectsOfClass(self.LinkClass).items() if not linkObjs: raise Exception, 'No %s contro...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
class StaticBoxSizerDTC(ControlLinkedSizerDTC):
class StaticBoxSizerDTC(ControlLinkedSizerDTC):
def notification(self, compn, action): if action == 'delete' and compn != self: compnSrcRef = Utils.srcRefFromCtrlName(compn.name) if self.textConstr.params.has_key(self.ctrlParam) and \ compnSrcRef == self.textConstr.params[self.ctrlParam]: self.designer.deleteCtrl(self.name)
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL,
self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL,
def __init__(self, name, designer, objClass): ControlLinkedSizerDTC.__init__(self, name, designer, objClass) self.editors['Orientation'] = EnumPropEdit self.names['Orientation'] = {'wxVERTICAL': wxVERTICAL, 'wxHORIZONTAL': wxHORIZONTAL} self.options['Orientation'] = [wxVERTICAL, wxHORIZONTAL] self.editors['StaticBox'] ...
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
wxBoxSizer, wxGridSizer, wxFlexGridSizer, wxStaticBoxSizer, wxNotebookSizer,
wxBoxSizer, wxGridSizer, wxFlexGridSizer, wxStaticBoxSizer, wxNotebookSizer,
def defaultAction(self): pass
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
wxGridSizer: ['wxGridSizer', GridSizerDTC], wxFlexGridSizer: ['wxFlexGridSizer', FlexGridSizerDTC], wxStaticBoxSizer: ['wxStaticBoxSizer', StaticBoxSizerDTC],
wxGridSizer: ['wxGridSizer', GridSizerDTC], wxFlexGridSizer: ['wxFlexGridSizer', FlexGridSizerDTC], wxStaticBoxSizer: ['wxStaticBoxSizer', StaticBoxSizerDTC],
def defaultAction(self): pass
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
def defaultAction(self): pass
6855cdd6e993138a31fabc262e2e332cdd94b9fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/6855cdd6e993138a31fabc262e2e332cdd94b9fc/SizerCompanions.py
self.icon = wxIcon(Preferences.toPyPath('Images\\Icons\\Debug.ico'), wxBITMAP_TYPE_ICO) self.SetIcon(self.icon)
self.SetIcon(IS.load('Images/Icons/Debug.ico'))
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))
c842c20d18ac448060b461400df12f07c4c71a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c842c20d18ac448060b461400df12f07c4c71a5c/Debugger.py
mod.__file__ = filename
try: mod.__file__ = filename except AttributeError: print "I''m frozen!"
def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = []
c842c20d18ac448060b461400df12f07c4c71a5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/c842c20d18ac448060b461400df12f07c4c71a5c/Debugger.py
(-1, '-', None, '-'), (wxID_CLIPCUT, 'Cut', self.OnCutItems, self.cutBmp), (wxID_CLIPCOPY, 'Copy', self.OnCopyItems, self.copyBmp), (wxID_CLIPPASTE, 'Paste', self.OnPasteItems, self.pasteBmp), (-1, '-', None, ''), (wxID_CLIPDELETE, 'Delete', self.OnDeleteItems, self.deleteBmp), (wxID_CLIPRENAME, 'Rename', self.OnRename...
(-1, '-', None, '-'), (wxID_CLIPCUT, 'Cut', self.OnCutItems, self.cutBmp), (wxID_CLIPCOPY, 'Copy', self.OnCopyItems, self.copyBmp), (wxID_CLIPPASTE, 'Paste', self.OnPasteItems, self.pasteBmp), (-1, '-', None, ''), (wxID_CLIPDELETE, 'Delete', self.OnDeleteItems, self.deleteBmp), (wxID_CLIPRENAME, 'Rename', self.OnRename...
def __init__(self): self.clipMenuDef = ( (wxID_CLIPRELOAD, 'Reload', self.OnReloadItems, '-'), (-1, '-', None, '-'), (wxID_CLIPCUT, 'Cut', self.OnCutItems, self.cutBmp), (wxID_CLIPCOPY, 'Copy', self.OnCopyItems, self.copyBmp), (wxID_CLIPPASTE, 'Paste', self.OnPasteItems, self.pasteBmp), (-1, '-', None, ''), (wxID_CLIPD...
39f74b6bae34e451608bb0e7dc7617b3a8fbf758 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/39f74b6bae34e451608bb0e7dc7617b3a8fbf758/ExplorerNodes.py
self.editor.statusBar.setHint('Bookmarked %s'% node.resourcepath, 'Info')
self.editor.statusBar.setHint( 'Bookmarked %s'% node.resourcepath, 'Info')
def OnBookmarkItems(self, event): if self.list.node: nodes = self.getNodesForSelection(self.list.getMultiSelection()) for node in nodes: if node.bookmarks: if node.isFolderish(): node.bookmarks.add(node.getURI()) self.editor.statusBar.setHint('Bookmarked %s'% node.resourcepath, 'Info') else: self.editor.statusBar.setHi...
39f74b6bae34e451608bb0e7dc7617b3a8fbf758 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/39f74b6bae34e451608bb0e7dc7617b3a8fbf758/ExplorerNodes.py
self.editor.statusBar.setHint('Not a directory: %s'% node.resourcepath, 'Error')
self.editor.statusBar.setHint( 'Not a directory: %s'% node.resourcepath, 'Error') else: node = self.list.node if not nodes and node.bookmarks: node.bookmarks.add(node.getURI()) self.editor.statusBar.setHint( 'Bookmarked %s'% node.getURI(), 'Info')
def OnBookmarkItems(self, event): if self.list.node: nodes = self.getNodesForSelection(self.list.getMultiSelection()) for node in nodes: if node.bookmarks: if node.isFolderish(): node.bookmarks.add(node.getURI()) self.editor.statusBar.setHint('Bookmarked %s'% node.resourcepath, 'Info') else: self.editor.statusBar.setHi...
39f74b6bae34e451608bb0e7dc7617b3a8fbf758 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/39f74b6bae34e451608bb0e7dc7617b3a8fbf758/ExplorerNodes.py
'before quitting.\n\nClick Cancel to quit anyway.', 'Child processes running'),
'before quitting.\n\nClick Cancel to quit anyway.'), _('Child processes running'),
def checkProcessesAtExit(self): if self.processesPage: self.checkProcesses() wx.Yield() cnt = self.processesPage.GetItemCount() if cnt: self.display() pageIdx = self.findPage(self.processesText) self.notebook.SetSelection(pageIdx)
852323ff8d5f93b8ba413477b7100bd7a7e7daf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/852323ff8d5f93b8ba413477b7100bd7a7e7daf6/ErrorStackFrm.py
def OnErrorstacktcTreeItemActivated(self, event): data = self.errorStackTC.GetPyData(event.GetItem()) if data is None: return if data.file.find('://') != -1 or os.path.isabs(data.file): fn = data.file
852323ff8d5f93b8ba413477b7100bd7a7e7daf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/852323ff8d5f93b8ba413477b7100bd7a7e7daf6/ErrorStackFrm.py
print 'no running dir for relative path'
def OnErrorstacktcTreeItemActivated(self, event): data = self.errorStackTC.GetPyData(event.GetItem()) if data is None: return if data.file.find('://') != -1 or os.path.isabs(data.file): fn = data.file
852323ff8d5f93b8ba413477b7100bd7a7e7daf6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/852323ff8d5f93b8ba413477b7100bd7a7e7daf6/ErrorStackFrm.py
self.setModelData(self.GetText())
self.setModelData(str(self.GetText()))
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false
d9d7849efc5eb8e0d9d32209221846ef27372675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d9d7849efc5eb8e0d9d32209221846ef27372675/SourceViews.py
def updatePageName(self): if hasattr(self, 'notebook'): currName = self.notebook.GetPageText(self.pageIdx) if self.isModified(): newName = '~%s~' % self.viewName else: newName = self.viewName if currName != newName: if newName == self.viewName: if self.model.viewsModified.count(self.viewName): self.model.viewsModifi...
def selectLine(self, lineno): self.GotoLine(lineno) sp = self.PositionFromLine(lineno) # Dont do whole screen selection ep = max(0, self.PositionFromLine(lineno+1)-1) self.SetSelection(sp, ep)
d9d7849efc5eb8e0d9d32209221846ef27372675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d9d7849efc5eb8e0d9d32209221846ef27372675/SourceViews.py
def OnFindAgain(self, event): import FindReplaceDlg FindReplaceDlg.findAgain(self, self.model.editor.finder, self)
d9d7849efc5eb8e0d9d32209221846ef27372675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d9d7849efc5eb8e0d9d32209221846ef27372675/SourceViews.py
ExplorerNodes.langStyleInfoReg.append( ('Text', 'text', TextSTCMix,
ExplorerNodes.langStyleInfoReg.append( ('Text', 'text', TextSTCMix,
def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_TEXTVIEW, model, (), -1) TextSTCMix.__init__(self, wxID_TEXTVIEW) self.active = true
d9d7849efc5eb8e0d9d32209221846ef27372675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d9d7849efc5eb8e0d9d32209221846ef27372675/SourceViews.py
def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_TEXTVIEW, model, (), -1) TextSTCMix.__init__(self, wxID_TEXTVIEW) self.active = true
d9d7849efc5eb8e0d9d32209221846ef27372675 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/d9d7849efc5eb8e0d9d32209221846ef27372675/SourceViews.py
self.triggers.update({'ToolBar': self.ChangeToolBar, 'StatusBar': self.ChangeStatusBar})
self.triggers.update({'ToolBar': self.ChangeToolBar})
def __init__(self, name, designer, frameCtrl): BaseFrameDTC.__init__(self, name, designer, frameCtrl)
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
if wxPlatform != '__WXGTK__': self.control.SetMenuBar(None)
self.control.SetMenuBar(None)
def updatePosAndSize(self): # XXX Delete links to frame bars so client size is accurate self.control.SetToolBar(None) self.control.SetStatusBar(None) if wxPlatform != '__WXGTK__': self.control.SetMenuBar(None)
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
def ChangeStatusBar(self, oldValue, newValue): pass
def GetStatusBar(self, x): return self.control.GetStatusBar() def SetStatusBar(self, value): self.control.SetStatusBar(value) if value: self.control.SendSizeEvent()
def ChangeStatusBar(self, oldValue, newValue): pass # XXX Cannot refresh designer because statusbar not yet connected
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
'StatusBar', 'Icon']
'StatusBar', 'StatusBarPane']
def hideDesignTime(self): # Because the Designer is actually a wxFrame pretending to be a # wxDialog, introspection will pick up wxFrame spesific properties # which must be supressed return BaseFrameDTC.hideDesignTime(self) + ['ToolBar', 'MenuBar', 'StatusBar', 'Icon']
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
dialogLayout = true
def SetName(self, oldValue, newValue): self.name = newValue self.designer.renameFrame(oldValue, newValue)
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
'StatusBar', 'Icon', 'Title', 'Anchors']
'StatusBar', 'StatusBarPane', 'Icon', 'Title', 'Anchors']
def hideDesignTime(self): return BaseFrameDTC.hideDesignTime(self) + ['ToolBar', 'MenuBar', 'StatusBar', 'Icon', 'Title', 'Anchors']
46f420f8c59cbd43dab335e76491b59ef238374e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/46f420f8c59cbd43dab335e76491b59ef238374e/FrameCompanions.py
for path in ctx.paths:
for path in ctx.brmctx.paths:
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
except 'Cancelled':
except Editor.CancelClose:
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
raise 'No text selected. Highlight the region you want to extract.'
raise CancelOperation, \ 'No text selected. Highlight the region you want to extract.'
def getExtractionInfo(self, xtype, caption): selection = self.view.GetSelectedText().strip() if not selection: raise 'No text selected. Highlight the region you want to extract.'
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
raise 'Empty names are invalid.'
raise CancelOperation, \ 'Empty names are invalid.'
def getExtractionInfo(self, xtype, caption): selection = self.view.GetSelectedText().strip() if not selection: raise 'No text selected. Highlight the region you want to extract.'
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
ctx.extractMethod(*self.getExtractionInfo('Method', 'Extract method')) self.saveAndRefresh()
try: ctx.extractMethod(*self.getExtractionInfo('Method', 'Extract method')) except CancelOperation, err: wxLogError(str(err)) else: self.view.SetSelectionEnd(self.view.GetSelectionStart()) self.saveAndRefresh()
def OnExtractMethod(self, event): if not self.checkUnsavedChanges(): return
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
filename, startline, startcol, endline, endcol, variablename = \ self.getExtractionInfo('Variable', 'Extract variable') ctx.extractLocalVariable(filename, startline, startcol, endline, endcol, variablename) self.saveAndRefresh()
try: filename, startline, startcol, endline, endcol, variablename = \ self.getExtractionInfo('Variable', 'Extract variable') except CancelOperation, err: wxLogError(str(err)) else: ctx.extractLocalVariable(filename, startline, startcol, endline, endcol, variablename) self.view.SetSelectionEnd(self.view.GetSelectionStar...
def OnExtractLocalVar(self, event): if not self.checkUnsavedChanges(): return ctx = self.model.editor.brm_context filename, startline, startcol, endline, endcol, variablename = \ self.getExtractionInfo('Variable', 'Extract variable') ctx.extractLocalVariable(filename, startline, startcol, endline, endcol, variablenam...
f38ae34b27142df1ab47d55449c9b0bc0711c659 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/f38ae34b27142df1ab47d55449c9b0bc0711c659/BicycleRepairMan.plug-in.py
self.editor.explorer.tree)
self.editor.explorer.tree.recentFiles)
def OnOpenItems(self, event): if self.list.node: nodes = self.getNodesForSelection(self.list.getMultiSelection()) for node in nodes: if not node.isFolderish(): self.list.openNodeInEditor(node, self.editor, self.editor.explorer.tree) #node.open(self.editor)
dfae86b75526a2feb20993c6fea4e5cd5443a98b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dfae86b75526a2feb20993c6fea4e5cd5443a98b/ExplorerNodes.py
self.list.EditLabel(self.list.selected)
def OnNewItem(self, event): if self.list.node: name = self.list.node.newItem() self.list.refreshCurrent() self.list.selectItemNamed(name) self.list.EditLabel(self.list.selected) self.OnInspectItem(event)
dfae86b75526a2feb20993c6fea4e5cd5443a98b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dfae86b75526a2feb20993c6fea4e5cd5443a98b/ExplorerNodes.py
def isTransportAvailable(conf, section, prot): return conf.has_option(section, prot) and nodeRegByProt.has_key(prot)
dfae86b75526a2feb20993c6fea4e5cd5443a98b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/dfae86b75526a2feb20993c6fea4e5cd5443a98b/ExplorerNodes.py
_x, _y, screenWidth, screenHeight = wxGetClientDisplayRect()
_x, _y, screenWidth, screenHeight = wx.GetClientDisplayRect()
def initScreenVars(): global screenWidth, screenHeight, wxDefaultFramePos, wxDefaultFrameSize global edWidth, inspWidth, paletteHeight, bottomHeight, underPalette global oglBoldFont, oglStdFont screenWidth = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_X) screenHeight = wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y) if wx....
a421ca6352aa067b7b9e0c55cc96e810cc9b49d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a421ca6352aa067b7b9e0c55cc96e810cc9b49d6/Preferences.py
ec.SetPosition(ec.GetPosition().x, idx*Preferences.oiLineHeight -2)
ec.SetPosition( (ec.GetPosition().x, idx*Preferences.oiLineHeight -2) )
def setIdx(self, idx): """ Move the to the given index """ if self.editorCtrl: for ec in self.editorCtrl: ec.SetPosition(ec.GetPosition().x, idx*Preferences.oiLineHeight -2) BevelIEC.setIdx(self, idx)
a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23/InspectorEditorControls.py
style=wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER)
style=wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER)
def createControl(self, parent, idx, sizeX): self.editorCtrl = wx.Window(parent, wx.NewId(), style=wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER) self.editorCtrl.SetDimensions(-2, idx*Preferences.oiLineHeight-2, sizeX, Preferences.oiLineHeight+3)
a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23/InspectorEditorControls.py
sizeX, Preferences.oiLineHeight+3)
sizeX, Preferences.oiLineHeight+3)
def createControl(self, parent, idx, sizeX): self.editorCtrl = wx.Window(parent, wx.NewId(), style=wx.TAB_TRAVERSAL | wx.SUNKEN_BORDER) self.editorCtrl.SetDimensions(-2, idx*Preferences.oiLineHeight-2, sizeX, Preferences.oiLineHeight+3)
a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/a7a46a549d2bdc8a9aa32f6cfa4ef7e18855ee23/InspectorEditorControls.py
import traceback traceback.print_exc()
if PRINT_TRACEBACKS: import traceback traceback.print_exc()
def clientThread(self): ''' Performs tasks. ''' exit_loop = 0 while not exit_loop: task = args = kw = None cond = self.cond cond.acquire() try: queue = self.queue if len(queue) < 1: if self.running_threads > self.target_threads: exit_loop = 1 self.running_threads = self.running_threads - 1 else: self.idle_threads = sel...
cbb40e464dfa7cf5b2b36633390ecd0429716148 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/cbb40e464dfa7cf5b2b36633390ecd0429716148/Tasks.py
'size': size,
'size': self.getDefCtrlSize(),
def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'pos': position, 'size': size, 'style': '0', 'name': `self.name`}
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py
'wxTB_VERTICAL', 'wxTB_3DBUTTONS'] + self.windowStyles
'wxTB_VERTICAL', 'wxTB_3DBUTTONS', 'wxTB_TEXT', 'wxTB_NOICONS', 'wxTB_NODIVIDER', 'wxTB_NOALIGN', ] + self.windowStyles
def __init__(self, name, designer, parent, ctrlClass): ContainerDTC.__init__(self, name, designer, parent, ctrlClass) self.editors.update({'Tools': CollectionPropEdit}) self.subCompanions['Tools'] = ToolBarToolsCDTC self.windowStyles = ['wxTB_FLAT', 'wxTB_DOCKABLE', 'wxTB_HORIZONTAL', 'wxTB_VERTICAL', 'wxTB_3DBUTTONS']...
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py
displayProp = 'shortHelpString'
displayProp = 'shortHelp'
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None)
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py
insertionMethod = 'AddTool'
insertionMethod = 'DoAddTool'
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None)
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py
'AddControl': ('Add control', 'control', '(None)')}
'AddControl': ('Add control', 'control', '(None)'), 'AddTool': ('Old add tool', 'shortHelpString', '(None)') }
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None)
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py
'BitmapOn': BitmapConstrPropEdit,
'PushedBitmap': BitmapConstrPropEdit, 'BitmapDisabled': BitmapConstrPropEdit,
def __init__(self, name, designer, parentCompanion, ctrl): CollectionIddDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors.update({'Bitmap': BitmapConstrPropEdit, 'BitmapOn': BitmapConstrPropEdit, 'IsToggle': BoolConstrPropEdit, 'ShortHelpString': StrConstrPropEdit, 'LongHelpString': StrConstrPropEd...
da374dc78330be838812818cb4f31a5821495bcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/da374dc78330be838812818cb4f31a5821495bcd/ContainerCompanions.py