def onTags(self, evt): table = self.GetTable() pos = self.GetGridCursorRow() currentStep = table.steps[pos] dlg = TagDialog(self, currentStep.tags()) if (dlg.ShowModal() == wx.ID_OK): currentStep.setTags(dlg.tags()) dlg.Destroy()
def onDoubleClick(self, evt): dlg = TagDialog(self, self.theTags) if (dlg.ShowModal() == wx.ID_OK): self.theTags = dlg.tags() self.SetValue(",".join(self.theTags))