(self, parent)
| 506 | |
| 507 | class FittingsTreeView(wx.Panel): |
| 508 | def __init__(self, parent): |
| 509 | wx.Panel.__init__(self, parent, id=wx.ID_ANY) |
| 510 | self.parent = parent |
| 511 | pmainSizer = wx.BoxSizer(wx.VERTICAL) |
| 512 | |
| 513 | tree = self.fittingsTreeCtrl = wx.TreeCtrl(self, wx.ID_ANY, style=wx.TR_DEFAULT_STYLE | wx.TR_HIDE_ROOT) |
| 514 | pmainSizer.Add(tree, 1, wx.EXPAND | wx.ALL, 0) |
| 515 | |
| 516 | self.root = tree.AddRoot("Fits") |
| 517 | self.populateSkillTree(None) |
| 518 | |
| 519 | self.Bind(wx.EVT_TREE_SEL_CHANGED, self.displayFit) |
| 520 | |
| 521 | self.SetSizer(pmainSizer) |
| 522 | |
| 523 | self.Layout() |
| 524 | |
| 525 | def populateSkillTree(self, data): |
| 526 | if data is None: |
nothing calls this directly
no test coverage detected