def get_yuid(self): idx = self.yselector.GetSelection() if idx is wx.NOT_FOUND: return None return self.ymap[idx]