MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

gui/builtinItemStatsViews/itemProperties.py:8–33  ·  view source on GitHub ↗
(self, parent, stuff, item, context=None)

Source from the content-addressed store, hash-verified

6
7class ItemProperties(wx.Panel):
8 def __init__(self, parent, stuff, item, context=None):
9 wx.Panel.__init__(self, parent)
10 mainSizer = wx.BoxSizer(wx.VERTICAL)
11
12 self.paramList = AutoListCtrl(self, wx.ID_ANY,
13 style=wx.LC_REPORT | wx.LC_SINGLE_SEL | wx.LC_VRULES | wx.NO_BORDER)
14 mainSizer.Add(self.paramList, 1, wx.ALL | wx.EXPAND, 0)
15 self.SetSizer(mainSizer)
16
17 self.toggleView = 1
18 self.stuff = stuff
19 self.item = item
20 self.attrInfo = {}
21 self.attrValues = {}
22 self._fetchValues()
23
24 self.m_staticline = wx.StaticLine(self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.LI_HORIZONTAL)
25 mainSizer.Add(self.m_staticline, 0, wx.EXPAND)
26 bSizer = wx.BoxSizer(wx.HORIZONTAL)
27
28 self.totalAttrsLabel = wx.StaticText(self, wx.ID_ANY, " ", wx.DefaultPosition, wx.DefaultSize, 0)
29 bSizer.Add(self.totalAttrsLabel, 0, wx.ALIGN_CENTER_VERTICAL | wx.RIGHT)
30
31 mainSizer.Add(bSizer, 0, wx.ALIGN_RIGHT)
32
33 self.PopulateList()
34
35 def _fetchValues(self):
36 if self.stuff is None:

Callers

nothing calls this directly

Calls 3

_fetchValuesMethod · 0.95
PopulateListMethod · 0.95
AutoListCtrlClass · 0.85

Tested by

no test coverage detected