Exemplo n.º 1
0
	def close(self):

		if self._roicircle == 1: ROImanager.draw_circle(self)
		elif self._roirect == 1: ROImanager.draw_rectangle(self)

		try: ROIdisplay.noshow_roi(self)
		except AttributeError: pass

		self.rt_Window.destroy()
		self._menucheckROI.set(0)
Exemplo n.º 2
0
	def clearall_roiList(self):

		MainDisplay.show_overlay(self)
		ROIdisplay.noshow_roi(self)

		del self._roipath
		del self._roilabel

		self.roiListbox.delete(0, 'end')

		self._canvas.draw()
Exemplo n.º 3
0
	def keepdelall_roi(self, keep):

		self.roiListbox.selection_clear(0, 'end')
		self.roiListbox.selection_set(0, 'end')

		if keep == 0: ROImanager.deldata_inroi(self)
		elif keep == 1: ROImanager.keepdata_inroi(self)

		ROIdisplay.noshow_roi(self)

		del self._roipath; del self._roilabel

		self.roiListbox.delete(0, 'end')

		MainDisplay.show_overlay(self)
Exemplo n.º 4
0
	def keepdelsel_roi(self, keep):

		if keep == 0:
			ROImanager.deldata_inroi(self)
			list_del = self.roiListbox.curselection()
		elif keep == 1:
			ROImanager.keepdata_inroi(self)
			list_del = [item for item in np.arange(self.roiListbox.size())
						if item not in self.roiListbox.curselection()]

		ROIdisplay.noshow_roi(self)

		for item in sorted(list_del, reverse=True):
			del self._roipath[item]
			del self._roilabel[item]

		for n, item in enumerate(self._roilabel):
			item.set_text(str(n+1))

		MainDisplay.show_overlay(self)

		ROIdisplay.show_roi(self)
		ROImanager.update_roiList(self)