MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / OnPropGridChange

Method OnPropGridChange

gui/propertyEditor.py:290–301  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

288 wxpg.PropertyGrid.Clear(self)
289
290 def OnPropGridChange(self, event):
291 p = event.GetProperty()
292 attr = p.GetClientData()
293 if p.GetValue() == attr.value:
294 self.item.deleteOverride(attr)
295 p.SetModifiedStatus(False)
296 else:
297 self.item.setOverride(attr, p.GetValue())
298
299 self.itemView.updateItems()
300
301 pyfalog.debug('{0} changed to "{1}"', p.GetName(), p.GetValueAsString())
302
303 def OnPropGridSelect(self, event):
304 pass

Callers

nothing calls this directly

Calls 4

deleteOverrideMethod · 0.80
setOverrideMethod · 0.80
updateItemsMethod · 0.80
GetValueMethod · 0.45

Tested by

no test coverage detected