bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def selectParent(self, ctrl): """ Change the selection to the parent of the currently selected control. """ if self.selection: if ctrl != self: parent = ctrl.GetParent() parentName = parent.GetName() if parentName == self.GetName(): parentName = '' self.inspector.containment.selectName(parentName)
def selectParent(self, ctrl): """ Change the selection to the parent of the currently selected control. """ if self.selection or self.multiSelection: if self.multiSelection: self.clearMultiSelection() self.assureSingleSelection() if ctrl != self: parent = ctrl.GetParent() parentName = parent.GetName() if parentName ==...
29,900
def renameFrame(self, oldName, newName): self.SetName(newName)
def renameFrame(self, oldName, newName): self.SetName(newName)
29,901
def deleteCtrl(self, name, parentRef = None): ctrlInfo = self.objects[name] parRel = None # build relationship, this will only happen for the first call if not parentRef: # select parent so long, pretty soon won't be able to ask who # the parent is parentName = ctrlInfo[1].GetParent().GetName() if parentName == self.Ge...
def deleteCtrl(self, name, parentRef = None): ctrlInfo = self.objects[name] parRel = None # build relationship, this will only happen for the first call if not parentRef: # select parent so long, pretty soon won't be able to ask who # the parent is parentName = ctrlInfo[1].GetParent().GetName() if parentName == self.Ge...
29,902
def disconnectToolBar(self, toolBar): parRel, parRef = self.buildParentRelationship() children = parRef[''] for childName in children.keys(): childCompn, childCtrl = self.objects[childName][:2] if not childCtrl.__class__ in self.ignoreWindows: pos = childCtrl.GetPosition() childCtrl.SetPosition( (pos.x, pos.y - toolBar...
def def checkChildCtrlClick(self, ctrlName, ctrl, companion, clickPos): selCtrl, selCompn, selPos = ctrl, companion, clickPos if companion.container: parent = ctrl else: parent = ctrl.GetParent() tbOffset = 0 if parent == self: tb = self.GetToolBar() if tb: tbOffset = tb.GetSize().y * -1 parRel, parRef = self.build...
29,903
def OnMouseOver(self, event): if event.Dragging(): pos = event.GetPosition() ctrl = self.senderMapper.getObject(event)
def OnMouseOver(self, event): if event.Dragging(): pos = event.GetPosition() ctrl = self.senderMapper.getObject(event)
29,904
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
29,905
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
29,906
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
29,907
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
def OnControlSelect(self, event): """ Control is clicked. Either select it or add control from palette """ ctrl = self.senderMapper.getObject(event)
29,908
def OnCloseWindow(self, event): self.destroying = true if self.selection: self.selection.destroy() self.selection = None
def OnCloseWindow(self, event): self.destroying = true if self.selection: self.selection.destroy() self.selection = None
29,909
def OnCtrlHelp(self, event): if self.inspector.selCmp: Help.showHelp(self, Help.wxWinHelpFrame, self.inspector.selCmp.wxDocs, None)
def OnCtrlHelp(self, event): if self.inspector.selCmp: Help.showHelp(self, Help.wxWinHelpFrame, self.inspector.selCmp.wxDocs, None) def OnAlignSelected(self, event): dlg = CtrlAlign.create(self) try: dlg.ShowModal() finally: dlg.Destroy() def OnSizeSelected(self, event): dlg = CtrlSize.create(self) try: dlg.ShowModal(...
29,910
def __repr__(self): return '<%s %s>' % (`self.__class__`, self.whole_name())
def __repr__(self): return '<%s %s>' % (`self.__class__`, self.whole_name())
29,911
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:41], ' ')) self.size = int(entries[3]) self.date = line[42:54] self.name = string.strip(line[55:]) except: print 'Could not read:', line
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:42], ' ')) self.size = int(entries[3]) self.date = line[42:54] self.name = string.strip(line[55:]) except: print 'Could not read:', line
29,912
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:41], ' ')) self.size = int(entries[3]) self.date = line[42:54] self.name = string.strip(line[55:]) except: print 'Could not read:', line
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:41], ' ')) self.size = int(entries[3]) self.date = line[43:55] self.name = string.strip(line[55:]) except: print 'Could not read:', line
29,913
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:41], ' ')) self.size = int(entries[3]) self.date = line[42:54] self.name = string.strip(line[55:]) except: print 'Could not read:', line
def read(self, line): try: self.perms = line[:10] entries = filter(None, string.split(line[10:41], ' ')) self.size = int(entries[3]) self.date = line[42:54] self.name = string.strip(line[55:]) except: print 'Could not read:', line
29,914
def whole_name(self): print self.path if self.path == '/': return '/%s' % self.name else: return '%s/%s' % (self.path, self.name)
def whole_name(self): if self.path == '/': return '/%s' % self.name else: return '%s/%s' % (self.path, self.name)
29,915
def SetBestSize(self, size=None): """ Given the current font and bezel width settings, calculate and set a good size. """ if size is None: size = wxSize(-1,-1) if type(size) == type(()): size = wxSize(size[0], size[1])
def SetBestSize(self, size=None): """ Given the current font and bezel width settings, calculate and set a good size. """ if size is None: size = wxSize(-1,-1) if type(size) == type(()): size = wxSize(size[0], size[1])
29,916
def InitColours(self):
def InitColours(self):
29,917
def InitColours(self):
def InitColours(self):
29,918
def SetBackgroundColour(self, colour): wxWindow.SetBackgroundColour(self, colour)
def SetBackgroundColour(self, colour): wxWindow.SetBackgroundColour(self, colour)
29,919
def OnLeftUp(self, event): if not self.IsEnabled(): return if not self.up: # if the button was down when the mouse was released... self.Notify() self.up = true self.ReleaseMouse() self.Refresh() event.Skip()
def OnLeftUp(self, event): if not self.IsEnabled(): return if not self.up: # if the button was down when the mouse was released... self.Notify() self.up = true self.Refresh() event.Skip()
29,920
def destroy(self): wxGenButton.destroy(self) self.bmpLabel = None self.bmpDisabled = None self.bmpFocus = None self.bmpSelected = None
def destroy(self): wxGenButton.destroy(self) self.bmpLabel = None self.bmpDisabled = None self.bmpFocus = None self.bmpSelected = None
29,921
def _GetLabelSize(self): """ used internally """ if not self.bmpLabel: return -1, -1, false return self.bmpLabel.GetWidth()+2, self.bmpLabel.GetHeight()+2, false
def_GetLabelSize(self):"""usedinternally"""ifnotself.bmpLabel:return-1,-1,falsereturnself.bmpLabel.GetWidth()+2,self.bmpLabel.GetHeight()+2,false
29,922
def OnKeyUp(self, event): if self.hasFocus and event.KeyCode() == ord(" "): self.up = not self.up self.Notify() self.Refresh() event.Skip()
def OnKeyUp(self, event): if self.hasFocus and event.KeyCode() == ord(" "): self.up = not self.up self.Notify() self.Refresh() event.Skip()
29,923
def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ ismerge = string.split(timestamp, '+') conflict = ismerge[0] == 'Result of merge' filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) if conflict and len(ismerge) ==1: filesegs, cvssegs = 1, 0 # conve...
def cvsFileLocallyModified(filename, timestamp): """ cvsFileLocallyModified -> modified, conflict """ ismerge = string.split(timestamp, '+') conflict = ismerge[0] == 'Result of merge' filets = time.asctime(time.gmtime(os.stat(filename)[stat.ST_MTIME])) if conflict and len(ismerge) == 1 or ismerge[0] == 'dummy timestam...
29,924
def _init_ctrls(self, prnt): # generated method, don't edit wxPanel.__init__(self, id=wxID_IMAGEEDITORPANEL, name='ImageEditorPanel', parent=prnt, pos=wxPoint(466, 318), size=wxSize(586, 356), style=wxSUNKEN_BORDER | wxTAB_TRAVERSAL) self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(578, 329))
def _init_ctrls(self, prnt): # generated method, don't edit wxPanel.__init__(self, id=wxID_IMAGEEDITORPANEL, name='ImageEditorPanel', parent=prnt, pos=wxPoint(466, 318), size=wxSize(586, 356), style=wxSUNKEN_BORDER | wxTAB_TRAVERSAL) self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(578, 329))
29,925
def _init_ctrls(self, prnt): # generated method, don't edit wxPanel.__init__(self, id=wxID_IMAGEEDITORPANEL, name='ImageEditorPanel', parent=prnt, pos=wxPoint(466, 318), size=wxSize(586, 356), style=wxSUNKEN_BORDER | wxTAB_TRAVERSAL) self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(578, 329))
def _init_ctrls(self, prnt): # generated method, don't edit wxPanel.__init__(self, id=wxID_IMAGEEDITORPANEL, name='ImageEditorPanel', parent=prnt, pos=wxPoint(466, 318), size=wxSize(586, 356), style=wxSUNKEN_BORDER | wxTAB_TRAVERSAL) self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(578, 329))
29,926
def OnPost(self, event): if self.selDesgn: self.selDesgn.saveOnClose = true self.selDesgn.Close()
def OnPost(self, event): if self.selDesgn: self.selDesgn.saveOnClose = true self.selDesgn.Close()
29,927
def OnCancel(self, event): if self.selDesgn: self.selDesgn.saveOnClose = false self.selDesgn.Close()
def OnCancel(self, event): if self.selDesgn: self.selDesgn.saveOnClose = false self.selDesgn.Close()
29,928
def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None`
def valueToIECValue(self): for k, v in self.defaults.items(): if value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None`
29,929
def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None`
def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(LinkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None`
29,930
def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and self.value and objs[objName].this == self.value.this: return objName return `None`
def valueToIECValue(self): for k, v in self.defaults.items(): if self.value == v: return k objs = self.companion.designer.getObjectsOfClass(self.linkClass) for objName in objs.keys(): if objs[objName] and value and objs[objName].this == value.this: return objName return `None`
29,931
def getObjects(self): return getValidSizers(self.companion.parentCompanion.control, self.companion.designer, value)
def getObjects(self): return getValidSizers(self.companion.parentCompanion.control, self.companion.designer, value)
29,932
def getValues(self): if self.value is None: value = 'None' else: value = sizer.GetName() return getValidSizers(self.companion.control, self.companion.designer, value)
def getValues(self): if self.value is None: value = 'None' else: value = self.getNameForValue(self.value, self.linkClass) return getValidSizers(self.companion.control, self.companion.designer, value)
29,933
def isValuesEqual(self, propVal, ctrlVal): if isinstance(propVal, wxFontPtr) and isinstance(ctrlVal, wxFontPtr): return fontAsExpr(propVal) == fontAsExpr(ctrlVal) else: return `propVal` == `ctrlVal`
def isValuesEqual(self, propVal, ctrlVal): if isinstance(propVal, wxFontPtr) and isinstance(ctrlVal, wxFontPtr): return fontAsExpr(propVal) == fontAsExpr(ctrlVal) else: return `propVal` == `ctrlVal`
29,934
def getValue(self): if self.editorCtrl: strVal = self.editorCtrl.getValue() try: self.value = self.names[strVal] except KeyError: self.value = self.companion.eval(strVal)
def class StringEnumPropEdit(EnumPropEdit): def getDisplayValue(self): return `self.value` getValue(self): class StringEnumPropEdit(EnumPropEdit): def getDisplayValue(self): return `self.value` if class StringEnumPropEdit(EnumPropEdit): def getDisplayValue(self): return `self.value` self.editorCtrl: class StringEnumPro...
29,935
def _init_ctrls(self, prnt): wxFrame.__init__(self, size = (-1, -1), id = wxID_INSPECTORFRAME, title = 'Inspector', parent = prnt, name = '', style = wxDEFAULT_FRAME_STYLE | wxWANTS_CHARS | wxCLIP_CHILDREN, pos = (-1, -1)) self._init_utils()
def _init_ctrls(self, prnt): wxFrame.__init__(self, size = (-1, -1), id = wxID_INSPECTORFRAME, title = 'Inspector', parent = prnt, name = '', style = wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN, pos = (-1, -1)) self._init_utils()
29,936
def __init__(self, parent): self._init_ctrls(parent)
def __init__(self, parent): self._init_ctrls(parent)
29,937
def __init__(self, parent): self._init_ctrls(parent)
def __init__(self, parent): self._init_ctrls(parent)
29,938
def __init__(self, parent): self._init_ctrls(parent)
def __init__(self, parent): self._init_ctrls(parent)
29,939
def __init__(self, parent): self._init_ctrls(parent)
def __init__(self, parent): self._init_ctrls(parent)
29,940
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
29,941
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
defselectObject(self,compn,selectInContainment=true):"""Selectanobjectintheinspectorbypopulatingthepropertypages.ThismethodiscalledfromtheInspectableObjectCollectionderivedclasses"""
29,942
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
29,943
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
29,944
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
def selectObject(self, compn, selectInContainment = true): """ Select an object in the inspector by populating the property pages. This method is called from the InspectableObjectCollection derived classes """
29,945
def pageUpdate(self, page, name):
def pageUpdate(self, page, name):
29,946
def directPositionUpdate(self, comp): print 'directPositionUpdate', comp.name comp.persistProp('Position', 'SetPosition', `comp.control.GetPosition()`)
def directPositionUpdate(self, comp): comp.persistProp('Position', 'SetPosition', `comp.control.GetPosition()`)
29,947
def cleanup(self): self.selCmp = None self.selObj = None self.selDesgn = None self.constr.cleanup() self.props.cleanup() self.events.cleanup()
defcleanup(self):self.selCmp=Noneself.selObj=Noneself.selDesgn=Noneself.constr.cleanup()self.props.cleanup()self.events.cleanup()
29,948
def refreshZopeProps(self): c = self.selCmp self.selCmp.updateZopeProps() self.selCmp = None self.selectObject(c)
def refreshZopeProps(self): cmpn = self.selCmp cmpn.updateZopeProps() self.selCmp = None self.selectObject(c)
29,949
def refreshZopeProps(self): c = self.selCmp self.selCmp.updateZopeProps() self.selCmp = None self.selectObject(c)
def refreshZopeProps(self): c = self.selCmp self.selCmp.updateZopeProps() self.selCmp = None self.selectObject(cmpn) def OnRevertItem(self, event): if self.selCmp and self.props.prevSel and self.props.prevSel.propEditor: propEdit = self.props.prevSel.propEditor propEdit.companion.propRevertToDefault(propEdit.name, pro...
29,950
def cleanup(self): self.designer = None self.valid = false self.treeItems = {} self.DeleteAllItems()
defcleanup(self):self.designer=Noneself.valid=falseself.treeItems={}self.DeleteAllItems()
29,951
def OnSelect(self, event): """ Event triggered when the selection changes in the tree """ if self.valid: idx = self.GetSelection() if self.designer:
def OnSelect(self, event): """ Event triggered when the selection changes in the tree """ if self.valid: idx = self.GetSelection() if self.designer:
29,952
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
29,953
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
29,954
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
29,955
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
29,956
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
def __init__(self, inspector, nameParent, valueParent, companion, rootCompanion, name, propWrapper, idx, indent, editor = None, options = None, names = None):
29,957
def destroy(self, cancel = false): self.hideEditor(cancel)
def destroy(self, cancel = false): self.hideEditor(cancel)
29,958
def setPos(self, idx): self.idx = idx if self.expander: self.expander.SetPosition(wxPoint(8 * self.indent, self.idx * oiLineHeight)) self.nameCtrl.SetPosition(wxPoint(8 * self.indent + 16, idx * oiLineHeight +2)) self.value.SetPosition(wxPoint(2, idx * oiLineHeight +2)) self.separatorN.SetPosition(wxPoint(0, (idx +1) *...
def setPos(self, idx): self.idx = idx if self.expander: self.expander.SetPosition(wxPoint(8 * self.indent, self.idx * oiLineHeight + 2)) self.nameCtrl.SetPosition(wxPoint(8 * self.indent + 16, idx * oiLineHeight +2)) self.value.SetPosition(wxPoint(2, idx * oiLineHeight +2)) self.separatorN.SetPosition(wxPoint(0, (idx +...
29,959
def resize(self, nameWidth, valueWidth): if nameWidth <> self.lastSizeN: if self.nameBevelTop: self.nameBevelTop.SetSize(wxSize(nameWidth, 1)) self.nameBevelBottom.SetSize(wxSize(nameWidth, 1)) if nameWidth > 100: self.nameCtrl.SetSize(wxSize(nameWidth, self.nameCtrl.GetSize().y)) else: self.nameCtrl.SetSize(wxSize(10...
def resize(self, nameWidth, valueWidth): if nameWidth <> self.lastSizeN: if self.nameBevelTop: self.nameBevelTop.SetSize(wxSize(nameWidth, 1)) self.nameBevelBottom.SetSize(wxSize(nameWidth, 1)) if nameWidth > 100: self.nameCtrl.SetSize(wxSize(nameWidth, self.nameCtrl.GetSize().y)) else: self.nameCtrl.SetSize(wxSize(10...
29,960
def showEdit(self): self.nameBevelTop = wxPanel(self.nameParent, -1, wxPoint(0, self.idx*oiLineHeight -1), wxSize(self.inspector.panelNames.GetSize().x, 1)) self.nameBevelTop.SetBackgroundColour(wxBLACK) self.nameBevelBottom = wxPanel(self.nameParent, -1, wxPoint(0, (self.idx + 1)*oiLineHeight -1), wxSize(self.inspecto...
def showEdit(self): self.nameBevelTop = wxPanel(self.nameParent, -1, wxPoint(0, self.idx*oiLineHeight -1), wxSize(self.inspector.panelNames.GetSize().x, 1)) self.nameBevelTop.SetBackgroundColour(wxBLACK) self.nameBevelBottom = wxPanel(self.nameParent, -1, wxPoint(0, (self.idx + 1)*oiLineHeight -1), wxSize(self.inspecto...
29,961
def hideEditor(self, cancel = false): if (not cancel) and self.propEditor:# and (not self.destr): self.propEditor.inspectorPost() self.value.SetLabel(self.propEditor.getDisplayValue()) self.value.SetSize(wxSize(self.separatorV.GetSize().x, self.value.GetSize().y))
def hideEditor(self, cancel = false): if (not cancel) and self.propEditor:# and (not self.destr): self.propEditor.inspectorPost() self.value.SetLabel(self.propEditor.getDisplayValue()) self.value.SetSize(wxSize(self.separatorV.GetSize().x, self.value.GetSize().y))
29,962
def hideEditor(self, cancel = false): if (not cancel) and self.propEditor:# and (not self.destr): self.propEditor.inspectorPost() self.value.SetLabel(self.propEditor.getDisplayValue()) self.value.SetSize(wxSize(self.separatorV.GetSize().x, self.value.GetSize().y))
def hideEditor(self, cancel = false): if (not cancel) and self.propEditor:# and (not self.destr): self.propEditor.inspectorPost() self.value.SetLabel(self.propEditor.getDisplayValue()) self.value.SetSize(wxSize(self.separatorV.GetSize().x, self.value.GetSize().y))
29,963
def initFromComponent(self): """ Update Inspector after possible change to underlying control """ if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.value.SetLabel(self.propEditor.getDisplayValue()) self.propEditor.persistValue(self.propEditor.valueAsExpr())
def initFromComponent(self): """ Update Inspector after possible change to underlying control """ if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.updateDisplayValue() self.propEditor.persistValue(self.propEditor.valueAsExpr())
29,964
def initFromComponent(self): """ Update Inspector after possible change to underlying control """ if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.value.SetLabel(self.propEditor.getDisplayValue()) self.propEditor.persistValue(self.propEditor.valueAsExpr())
def initFromComponent(self): """ Update Inspector after possible change to underlying control """ if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.value.SetLabel(self.propEditor.getDisplayValue()) self.propEditor.persistValue(self.propEditor.valueAsExpr())
29,965
def initFromComponent(self): if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.value.SetLabel(self.propEditor.getDisplayValue())
def initFromComponent(self): if self.propEditor: self.propEditor.initFromComponent() if not self.propEditor.editorCtrl: self.value.SetLabel(self.propEditor.getDisplayValue())
29,966
def initFromComponent(self): pass
def initFromComponent(self): pass
29,967
def __init__(self, parent, inspector): wxSplitterWindow.__init__(self, parent, -1, style = wxSP_NOBORDER|wxSP_LIVE_UPDATE)#wxNO_3D|wxSP_3D) self.inspector = inspector self.categories = wxSplitterWindow(self, -1, style = wxNO_3D|wxSP_3D|wxSP_LIVE_UPDATE)#style = wxSP_NOBORDER) self.definitions = InspectorEventScrollWin...
def __init__(self, parent, inspector): wxSplitterWindow.__init__(self, parent, -1, style = wxSP_NOBORDER|wxSP_LIVE_UPDATE)#wxNO_3D|wxSP_3D) self.inspector = inspector self.categories = wxSplitterWindow(self, -1, style = wxNO_3D|wxSP_3D|wxSP_LIVE_UPDATE)#style = wxSP_NOBORDER) self.definitions = InspectorEventScrollWin...
29,968
def __init__(self, parent, inspector): wxSplitterWindow.__init__(self, parent, -1, style = wxSP_NOBORDER|wxSP_LIVE_UPDATE)#wxNO_3D|wxSP_3D) self.inspector = inspector self.categories = wxSplitterWindow(self, -1, style = wxNO_3D|wxSP_3D|wxSP_LIVE_UPDATE)#style = wxSP_NOBORDER) self.definitions = InspectorEventScrollWin...
def __init__(self, parent, inspector): wxSplitterWindow.__init__(self, parent, -1, style = wxSP_NOBORDER|wxSP_LIVE_UPDATE)#wxNO_3D|wxSP_3D) self.inspector = inspector self.categories = wxSplitterWindow(self, -1, style = wxNO_3D|wxSP_3D|wxSP_LIVE_UPDATE)#style = wxSP_NOBORDER) self.definitions = InspectorEventScrollWin...
29,969
def readObject(self):
defreadObject(self):
29,970
def readObject(self):
def readObject(self):
29,971
def readObject(self):
defreadObject(self):
29,972
def addEvent(self, name, value, wid = None): self.inspector.selCmp.persistEvt(name, value, wid) self.inspector.selCmp.evtSetter(name, value) self.definitions.addEvent(name)
def addEvent(self, name, value, wid = None): self.inspector.selCmp.persistEvt(name, value, wid) self.inspector.selCmp.evtSetter(name, value) self.definitions.addEvent(name)
29,973
def getEvent(self, name): return self.definitions.getNameValue(name)
def getEvent(self, name): return self.definitions.getNameValue(name)
29,974
def OnMacroSelect(self, event): if self.selMacClass > -1: companion = self.inspector.selCmp macName = self.categoryMacros.GetItemText(self.selMacClass) methName = self.macroNameToEvtName(macName) catClassName = self.categoryClasses.GetItemText(self.selCatClass) frameName = companion.designer.GetName() if catClassName i...
def OnMacroSelect(self, event): if self.selMacClass > -1: catClassName = self.categoryClasses.GetItemText(self.selCatClass) macName = self.categoryMacros.GetItemText(self.selMacClass) methName = self.macroNameToEvtName(macName) catClassName = self.categoryClasses.GetItemText(self.selCatClass) frameName = companion.desi...
29,975
def OnMacroSelect(self, event): if self.selMacClass > -1: companion = self.inspector.selCmp macName = self.categoryMacros.GetItemText(self.selMacClass) methName = self.macroNameToEvtName(macName) catClassName = self.categoryClasses.GetItemText(self.selCatClass) frameName = companion.designer.GetName() if catClassName i...
def OnMacroSelect(self, event): if self.selMacClass > -1: companion = self.inspector.selCmp macName = self.categoryMacros.GetItemText(self.selMacClass) methName = self.macroNameToEvtName(macName) catClassName = self.categoryClasses.GetItemText(self.selCatClass) frameName = companion.designer.GetName() if catClassName i...
29,976
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
29,977
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
29,978
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
29,979
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
def __init__(self, parent): wxScrolledWindow.__init__(self, parent, -1, wxPoint(0, 0), wxPyDefaultSize, wxSUNKEN_BORDER)
29,980
def cleanup(self): # XXX Does this always have to be inited here? self.prevSel = None #clean up for i in self.nameValues: i.destroy() self.nameValues = [] self.refreshSplitter()
def cleanup(self): # XXX Does this always have to be inited here? self.prevSel = None #clean up for i in self.nameValues: i.destroy(true) self.nameValues = [] self.refreshSplitter()
29,981
def getNameValue(self, name): for nv in self.nameValues: if nv.propName == name: return nv return None
def getNameValue(self, name): for nv in self.nameValues: if nv.propName == name: return nv return None
29,982
def refreshSplitter(self):
defrefreshSplitter(self):
29,983
def refreshSplitter(self):
def refreshSplitter(self):
29,984
def propertySelected(self, nameValue): """ Called when a new name value is selected """ if self.prevSel: self.prevSel.hideEditor() nameValue.showEdit() self.prevSel = nameValue
def propertySelected(self, nameValue): """ Called when a new name value is selected """ if self.prevSel: self.prevSel.hideEditor() nameValue.showEdit() self.prevSel = nameValue
29,985
def OnSize(self, event): self.refreshSplitter() event.Skip()
def OnSize(self, event): self.refreshSplitter() event.Skip()
29,986
def __init__(self, parent, inspector): NameValueEditorScrollWin.__init__(self, parent)
def __init__(self, parent, inspector): NameValueEditorScrollWin.__init__(self, parent)
29,987
def deleteNameValues(self, idx, count, cancel = false): # delete sub properties deleted = 0 if idx < len(self.nameValues): while (idx < len(self.nameValues)) and (deleted < count): if self.nameValues[idx] == self.prevSel: self.prevSel = None self.nameValues[idx].destroy(cancel) del self.nameValues[idx] deleted = delete...
def""" Removes a range of name values from the Inspector. Used to collapse sub properties """ deleteNameValues(self,""" Removes a range of name values from the Inspector. Used to collapse sub properties """ idx,""" Removes a range of name values from the Inspector. Used to collapse sub properties """ count,""" Removes ...
29,988
def deleteNameValues(self, idx, count, cancel = false): # delete sub properties deleted = 0 if idx < len(self.nameValues): while (idx < len(self.nameValues)) and (deleted < count): if self.nameValues[idx] == self.prevSel: self.prevSel = None self.nameValues[idx].destroy(cancel) del self.nameValues[idx] deleted = delete...
def deleteNameValues(self, idx, count, cancel = false): # delete sub properties deleted = 0 if idx < len(self.nameValues): while (idx < len(self.nameValues)) and (deleted < count): if self.nameValues[idx] == self.prevSel: self.prevSel = None self.nameValues[idx].destroy(cancel) del self.nameValues[idx] deleted = delete...
29,989
def OnEnter(self, event): for nv in self.nameValues: if nv.editing: nv.propEditor.inspectorPost(false)
def OnEnter(self, event): for nv in self.nameValues: if nv.editing: nv.propEditor.inspectorPost(false)
29,990
def collapse(self, nameValue): # delete all NameValues until the same indent, count them startIndent = nameValue.indent idx = nameValue.idx + 1 # Move deletion into method and use in removeEvent of EventWindow i = idx if i < len(self.nameValues): while (i < len(self.nameValues)) and \ (self.nameValues[i].indent > star...
defself.refreshSplitter() nameValue.propEditor.expanded = false def OnEnter(self, event): for nv in self.nameValues: if nv.editing: nv.propEditor.inspectorPost(false) def OnUndo(self, event): pass def OnCrsUp(self, event): if len(self.nameValues) > 1: for idx in range(1, len(self.nameValues)): if self.nameValue...
29,991
def readObject(self, constrList): def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
def readObject(self, constrList): params = self.inspector.selCmp.constructor() paramNames = params.keys() paramNames.sort() compn = self.inspector.selCmp self.addParams(constrList, paramNames, compn, compn) self.refreshSplitter() def addParams(self, constrList, paramNames, compn, rootCompn, indent = 0, insIdx = -1):...
29,992
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
29,993
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
29,994
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
def findInConstrLst(name, constrList): for constr in constrList: if constr.name == name: return constr return None
29,995
def addConstr(self, name): compn = self.inspector.selCmp props = compn.properties() if props.has_key(name): rType, getter, setter = props[name] propWrap = RTTI.PropertyWrapper(name, rType, getter, setter) else: propWrap = RTTI.PropertyWrapper(name, 'NoneRoute', None, None) self.nameValues.insert(len(self.nameValues), ...
def addConstr(self, name): compn = self.inspector.selCmp props = compn.properties() if props.has_key(name): rType, getter, setter = props[name] propWrap = RTTI.PropertyWrapper(name, rType, getter, setter) else: propWrap = RTTI.PropertyWrapper(name, 'NoneRoute', None, None) if insIdx == -1: insIdx = len(self.nameValues...
29,996
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name)))
def addProp(self, name, compn, rootCompn, propWrap, indent = 0, insIdx = -1, ownerPropEdit = None): if insIdx == -1: insIdx = len(self.nameValues) self.nameValues.insert(insIdx, PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn...
29,997
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name)))
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, rootCompn, name, propWrap, insIdx, indent, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name)))
29,998
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name)))
def addProp(self, name, propWrap): compn = self.inspector.selCmp self.nameValues.insert(len(self.nameValues), PropNameValue(self, self.panelNames, self.panelValues, compn, compn, name, propWrap, len(self.nameValues), 0, compn.getPropEditor(name), compn.getPropOptions(name), compn.getPropNames(name), ownerPropEdit))
29,999