PEATDB/DNAtool/Restriction_Digest_driver.py
def clear_restriction_details(self):
		"""Remove all restriction sites from the sequence window"""
	
		if getattr(self,'new_seq_win_objs',None):
			for obj in self.new_seq_win_objs.keys():
				self.seqframe.delete(obj)
			self.new_seq_win_objs={}
			self.donepos={}
			#
			for obj in self.temp_objs.keys():
				self.seqframe.delete(obj)
			self.temp_objs={}
			self.temp_sites={}
			self.seqframe.delete('labelrect')
			self.seqframe.delete('line')
			self.seqframe.delete('templabelrect')
			self.seqframe.delete('templine')
			#also clear the sites list - this is used in tidying and rendering lines/rects

		return
Remove all restriction sites from the sequence window
Remove all restriction sites from the sequence window
Remove all restriction sites from the sequence window
def clear_restriction_details(self):
		if getattr(self,'new_seq_win_objs',None):
			for obj in self.new_seq_win_objs.keys():
				self.seqframe.delete(obj)
			self.new_seq_win_objs={}
			self.donepos={}
			for obj in self.temp_objs.keys():
				self.seqframe.delete(obj)
			self.temp_objs={}
			self.temp_sites={}
			self.seqframe.delete('labelrect')
			self.seqframe.delete('line')
			self.seqframe.delete('templabelrect')
			self.seqframe.delete('templine')
			also clear the sites list - this is used in tidying and rendering lines/rects
		return
def clear_restriction_details ( self ) : if getattr ( self , 'new_seq_win_objs' , None ) : for obj in self . new_seq_win_objs . keys ( ) : self . seqframe . delete ( obj ) self . new_seq_win_objs = { } self . donepos = { } for obj in self . temp_objs . keys ( ) : self . seqframe . delete ( obj ) self . temp_objs = { } self . temp_sites = { } self . seqframe . delete ( 'labelrect' ) self . seqframe . delete ( 'line' ) self . seqframe . delete ( 'templabelrect' ) self . seqframe . delete ( 'templine' ) return
Remove all restriction sites from the sequence window
Remove all restriction sites from the sequence window
"""Remove all restriction sites from the sequence window""" # #also clear the sites list - this is used in tidying and rendering lines/rects
self