bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def set_trace(self, call_depth=1): """Start debugging from the caller frame. | def set_trace(self, call_depth=1): """Start debugging from the caller frame. | 29,500 |
def set_trace(self, call_depth=1): """Start debugging from the caller frame. | def set_trace(self, call_depth=1): """Start debugging from the caller frame. | 29,501 |
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,... | defset_break(self,filename,lineno,temporary=0,cond=None):#orig_filename=filenamefilename=self.canonic(filename)importlinecache#Importaslateaspossibleline=linecache.getline(filename,lineno)ifnotline:#XXXmaybeshouldcalllinecache.checkcache()here?return'Invalidline:%s(%s)'%(filename,lineno)self.set_internal_breakpoint(fil... | 29,502 |
def runFile(self, filename, params, autocont, add_paths): d = {'__name__': '__main__', '__doc__': 'Debugging', '__builtins__': __builtins__,} | def runFile(self, filename, params, autocont, add_paths): d = {'__name__': '__main__', '__doc__': 'Debugging', '__builtins__': __builtins__,} | 29,503 |
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... | defrun(self,cmd,globals=None,locals=None):try:self._running=1try:Bdb.run(self,cmd,globals,locals)except(BdbQuit,SystemExit):passexcept:#Providepost-mortemanalysis.importtracebacktraceback.print_exc()self.exc_info=sys.exc_info()self.frame=self.exc_info[2].tb_frameself.quitting=0self.eventLoop()finally:sys.settrace(None)... | 29,504 |
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... | 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() if self._lock.acquire(0): self.exc_info = sys.exc_info() self.frame = self.exc_info[2].tb_fram... | 29,505 |
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... | 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... | 29,506 |
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') | 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') | 29,507 |
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... | 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... | 29,508 |
def reset(self): Bdb.reset(self) #self.frame = None | def reset(self): Bdb.reset(self) #self.frame = None | 29,509 |
def __init__(self): wxBoxSizer.__init__(self, wxVERTICAL) self.AddSpacer(24, 24) | def __init__(self): wxBoxSizer.__init__(self, wxVERTICAL) self.AddSpacer(24, 24) | 29,510 |
def renameCtrl(self, oldName, newName): UtilityDTC.renameCtrl(self, oldName, newName) self.designer.checkSizerConnectRename(oldName, newName) | def renameCtrl(self, oldName, newName): UtilityDTC.renameCtrl(self, oldName, newName) self.designer.checkSizerConnectRename(oldName, newName) | 29,511 |
def renameCtrlRefs(self, oldName, newName): UtilityDTC.renameCtrlRefs(self, oldName, newName) | def renameCtrlRefs(self, oldName, newName): UtilityDTC.renameCtrlRefs(self, oldName, newName) | 29,512 |
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 | 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 | 29,513 |
def recreateSizerItems(self): for collComp in self.collections.values(): collComp.control = self.control for crt in collComp.textConstrLst: collComp.applyDesignTimeDefaults(crt.params, crt.method) | def recreateSizerItems(self): for collComp in self.collections.values(): collComp.control = self.control for crt in collComp.textConstrLst: collComp.applyDesignTimeDefaults(crt.params, crt.method) | 29,514 |
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... | 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... | 29,515 |
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... | 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... | 29,516 |
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... | 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... | 29,517 |
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... | 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... | 29,518 |
def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value) | def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value) | 29,519 |
def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value) | def setCtrlValue(self, oldValue, value): self.companion.SetSizer(value) | 29,520 |
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': ... | 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': ... | 29,521 |
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': ... | 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': ... | 29,522 |
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... | 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... | 29,523 |
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... | 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', 'flag'... | 29,524 |
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... | 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', 'flag'... | 29,525 |
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... | 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... | 29,526 |
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 | 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 | 29,527 |
def appendItem(self, method=None): CollectionDTC.appendItem(self, method) self.updateGUI() | def appendItem(self, method=None): CollectionDTC.appendItem(self, method) self.updateGUI() | 29,528 |
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(... | 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(... | 29,529 |
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | 29,530 |
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | 29,531 |
def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | def designTimeDefaults(self, vals, method=None): if method is None: method = self.insertionMethod | 29,532 |
def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod | def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod | 29,533 |
def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod | def applyDesignTimeDefaults(self, params, method=None): if method is None: method = self.insertionMethod | 29,534 |
def setWindowRefresh(self, collEditView): collEditView.refreshCtrl(1) collEditView.selectObject(self.index) if collEditView.frame: collEditView.frame.selectObject(self.index) | def setWindowRefresh(self, collEditView): collEditView.refreshCtrl(1) collEditView.selectObject(self.index) if collEditView.frame: collEditView.frame.selectObject(self.index) | 29,535 |
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.... | 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.... | 29,536 |
def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh) | def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh) | 29,537 |
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] | 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] | 29,538 |
def designTimeSource(self): return {'orient': 'wxVERTICAL'} | def designTimeSource(self): return {'orient': 'wxVERTICAL'} | 29,539 |
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... | 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... | 29,540 |
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... | 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... | 29,541 |
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... | 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... | 29,542 |
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... | 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... | 29,543 |
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... | 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... | 29,544 |
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... | 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... | 29,545 |
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... | 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... | 29,546 |
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... | 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... | 29,547 |
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... | 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... | 29,548 |
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... | 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... | 29,549 |
def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh) | def updateGUI(self): self.control.Layout() wxCallAfter(self.designer.controllerView.Refresh) | 29,550 |
def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') ) | def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') ) | 29,551 |
def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') ) | def writeImports(self): return '\n'.join( (GridSizerDTC.writeImports(self), 'from wxPython.lib.rcsizer import RowColSizer') ) | 29,552 |
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... | 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... | 29,553 |
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... | 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... | 29,554 |
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... | 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... | 29,555 |
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) | 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) | 29,556 |
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'] ... | 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'] ... | 29,557 |
def defaultAction(self): pass | def defaultAction(self): pass | 29,558 |
def defaultAction(self): pass | def defaultAction(self): pass | 29,559 |
def defaultAction(self): pass | def defaultAction(self): pass | 29,560 |
def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight)) | def __init__(self, model, stack = None): bdb.Bdb.__init__(self) wxFrame.__init__(self, model.editor, -1, 'Debugger - %s - %s' \ % (path.basename(model.filename), model.filename), wxPoint(0, Preferences.paletteHeight), wxSize(Preferences.inspWidth, Preferences.bottomHeight)) | 29,561 |
def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | def debug_file(self, filename, params = None): filename = path.join(pyPath, filename) saveout = sys.stdout saveerr = sys.stderr if params is None: params = [] | 29,562 |
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... | 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... | 29,563 |
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... | 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.setH... | 29,564 |
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... | 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... | 29,565 |
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) | 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) | 29,566 |
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 | 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 | 29,567 |
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 | 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 | 29,568 |
def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | def refreshModel(self): if self.isModified(): self.model.modified = true self.nonUserModification = false | 29,569 |
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) | 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) | 29,570 |
def OnFindAgain(self, event): import FindReplaceDlg FindReplaceDlg.findAgain(self, self.model.editor.finder, self) | def OnFindAgain(self, event): import FindReplaceDlg FindReplaceDlg.findAgain(self, self.model.editor.finder, self) | 29,571 |
def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_TEXTVIEW, model, (), -1) TextSTCMix.__init__(self, wxID_TEXTVIEW) self.active = true | def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_TEXTVIEW, model, (), -1) TextSTCMix.__init__(self, wxID_TEXTVIEW) self.active = true | 29,572 |
def __init__(self, parent, model): EditorStyledTextCtrl.__init__(self, parent, wxID_TEXTVIEW, model, (), -1) TextSTCMix.__init__(self, wxID_TEXTVIEW) self.active = true | def__init__(self,parent,model):EditorStyledTextCtrl.__init__(self,parent,wxID_TEXTVIEW,model,(),-1)TextSTCMix.__init__(self,wxID_TEXTVIEW)self.active=true | 29,573 |
def __init__(self, name, designer, frameCtrl): BaseFrameDTC.__init__(self, name, designer, frameCtrl) | def __init__(self, name, designer, frameCtrl): BaseFrameDTC.__init__(self, name, designer, frameCtrl) | 29,574 |
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) | 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) | 29,575 |
def ChangeStatusBar(self, oldValue, newValue): pass # XXX Cannot refresh designer because statusbar not yet connected | def ChangeStatusBar(self, oldValue, newValue): pass # XXX Cannot refresh designer because statusbar not yet connected | 29,576 |
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'] | 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'] | 29,577 |
def SetName(self, oldValue, newValue): self.name = newValue self.designer.renameFrame(oldValue, newValue) | defdialogLayout = true SetName(self,dialogLayout = true oldValue,dialogLayout = true newValue):dialogLayout = true self.namedialogLayout = true =dialogLayout = true newValuedialogLayout = true self.designer.renameFrame(oldValue,dialogLayout = true newValue) | 29,578 |
def hideDesignTime(self): return BaseFrameDTC.hideDesignTime(self) + ['ToolBar', 'MenuBar', 'StatusBar', 'Icon', 'Title', 'Anchors'] | def hideDesignTime(self): return BaseFrameDTC.hideDesignTime(self) + ['ToolBar', 'MenuBar', 'StatusBar', 'Icon', 'Title', 'Anchors'] | 29,579 |
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context | def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context | 29,580 |
def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context | def checkUnsavedChanges(self): model = self.model ctx = model.editor.brm_context | 29,581 |
def getExtractionInfo(self, xtype, caption): selection = self.view.GetSelectedText().strip() if not selection: raise '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.' | 29,582 |
def getExtractionInfo(self, xtype, caption): selection = self.view.GetSelectedText().strip() if not selection: raise '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.' | 29,583 |
def OnExtractMethod(self, event): if not self.checkUnsavedChanges(): return | def OnExtractMethod(self, event): if not self.checkUnsavedChanges(): return | 29,584 |
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... | def OnExtractLocalVar(self, event): if not self.checkUnsavedChanges(): return ctx = self.model.editor.brm_context try: filename, startline, startcol, endline, endcol, variablename = \ self.getExtractionInfo('Variable', 'Extract variable') except CancelOperation, err: wxLogError(str(err)) else: ctx.extractLocalVariable... | 29,585 |
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) | 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.recentFiles) #node.open(self.editor) | 29,586 |
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) | def OnNewItem(self, event): if self.list.node: name = self.list.node.newItem() self.list.refreshCurrent() self.list.selectItemNamed(name) self.OnInspectItem(event) | 29,587 |
def isTransportAvailable(conf, section, prot): return conf.has_option(section, prot) and nodeRegByProt.has_key(prot) | defisTransportAvailable(conf,section,prot):returnconf.has_option(section,prot)andnodeRegByProt.has_key(prot) | 29,588 |
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.... | 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.... | 29,589 |
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) | 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) | 29,590 |
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) | 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) | 29,591 |
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) | 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) | 29,592 |
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... | 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... | 29,593 |
def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'pos': position, 'size': size, 'style': '0', 'name': `self.name`} | def designTimeSource(self, position = 'wxDefaultPosition', size = 'wxDefaultSize'): return {'pos': position, 'size': self.getDefCtrlSize(), 'style': '0', 'name': `self.name`} | 29,594 |
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']... | 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']... | 29,595 |
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | 29,596 |
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | 29,597 |
def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | def defaultAction(self): self.designer.inspector.props.getNameValue('Tools').propEditor.edit(None) | 29,598 |
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... | def __init__(self, name, designer, parentCompanion, ctrl): CollectionIddDTC.__init__(self, name, designer, parentCompanion, ctrl) self.editors.update({'Bitmap': BitmapConstrPropEdit, 'PushedBitmap': BitmapConstrPropEdit, 'BitmapDisabled': BitmapConstrPropEdit, 'IsToggle': BoolConstrPropEdit, 'ShortHelpString': StrConst... | 29,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.