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

Method __init__

gui/propertyEditor.py:237–253  ·  view source on GitHub ↗
(self, parent)

Source from the content-addressed store, hash-verified

235
236class AttributeGrid(wxpg.PropertyGrid):
237 def __init__(self, parent):
238 wxpg.PropertyGrid.__init__(self, parent,
239 style=wxpg.PG_HIDE_MARGIN | wxpg.PG_HIDE_CATEGORIES | wxpg.PG_BOLD_MODIFIED | wxpg.PG_TOOLTIPS)
240 self.SetExtraStyle(wxpg.PG_EX_HELP_AS_TOOLTIPS)
241
242 self.item = None
243
244 self.itemView = parent.Parent.itemView
245
246 self.btn = parent.Parent.btnRemoveOverrides
247
248 self.Bind(wxpg.EVT_PG_CHANGED, self.OnPropGridChange)
249 self.Bind(wxpg.EVT_PG_SELECTED, self.OnPropGridSelect)
250 self.Bind(wxpg.EVT_PG_RIGHT_CLICK, self.OnPropGridRightClick)
251
252 self.itemView.Bind(wx.EVT_LIST_ITEM_SELECTED, self.itemActivated)
253 self.itemView.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.itemActivated)
254
255 def itemActivated(self, event):
256 self.Clear()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected