def activate(self, callingWindow, fullContext, mainItem, i): TargetProfileEditor.openOne(parent=self.mainFrame, selected=mainItem.item)
def OnShowTargetProfileEditor(self, event): TargetProfileEditor.openOne(parent=self)