def OnInsertName(self, event): item = self.list.GetNextItem(-1, wx.LIST_NEXT_ALL, wx.LIST_STATE_SELECTED) if item == -1: return # this seems to return column 0's text, which is lucky, because I # don't see a way of getting other columns' texts... name = self.list.GetItemText(item) for ch in name: self.ctrl.OnKeyChar(util.MyKeyEvent(ord(ch)))
def OnInsert(self, event): if self.charMap.selected: self.ctrl.OnKeyChar(util.MyKeyEvent(ord(self.charMap.selected)))