def activate(self, callingWindow, fullContext, i): with NameDialog(self.mainFrame, '') as dlg: if dlg.ShowModal() == wx.ID_OK: name = dlg.input.GetLineText(0).strip() if name == '': return from gui.setEditor import ImplantSetEditor ImplantSetEditor.openOne(parent=self.mainFrame, dataToAdd=(name, self.implants))
def OnShowImplantSetEditor(self, event): ImplantSetEditor.openOne(parent=self)