Bind contextHandler to children of contentPanel
Changes to statsPane.py: Added new method applyBinding which loops through all the children of the contentPanel passed to it and binds contextHandler to each of them Changes to miningyieldViewFull.py: Call to new method applyBinding
This commit is contained in:
@@ -122,6 +122,8 @@ class MiningYieldViewFull(StatsView):
|
||||
self.parent.views.append(view)
|
||||
# Get the TogglePanel
|
||||
tp = self.panel.GetParent()
|
||||
# Bind the new panel's children to allow context menu access
|
||||
self.parent.applyBinding(self.parent, tp.GetContentPane())
|
||||
tp.SetLabel(view.getHeaderText(fit))
|
||||
view.refreshPanel(fit)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user