def onSelect(self,event):
if self.image_name:
if self.n_points != None and len(self.coords[self.image_name]) != self.n_points:
print "ERROR: incorrect number of points."
self.image_name = event.GetString()
if not self.coords.has_key(self.image_name):
self.coords[self.image_name] = []
filename = os.path.join(self.image_dir,self.image_name)
self.current_image = wx.Image(filename)
self.first_click = True
self.DisplayImage()
评论列表
文章目录